#include <EventMap.h>
◆ add()
void EventMap::add |
( |
int |
eventId, |
|
|
EventIR |
ir |
|
) |
| |
◆ clear()
◆ dump()
void EventMap::dump |
( |
int |
eventId | ) |
const |
◆ dumpAll()
void EventMap::dumpAll |
( |
| ) |
const |
◆ enumerateTriggers()
- Parameters
-
triggerType | Event type to look for. |
- Returns
- List of all event positions that have the given event type.
◆ event()
const EventIR & EventMap::event |
( |
int |
eventId, |
|
|
int |
step |
|
) |
| const |
- Parameters
-
eventId | Event id. |
step | Step in the script to get event for. |
- Returns
- Reference to an event for the given
eventId
and step
.
- Exceptions
-
Exception | If the event doesn't exist for the provided eventId and step . |
◆ events()
const std::vector< EventIR > & EventMap::events |
( |
int |
eventId | ) |
const |
- Parameters
-
- Returns
- Reference to a list of events for the provided
eventId
.
- Exceptions
-
Exception | If there are no events for the provided eventId . |
◆ hasEvent()
bool EventMap::hasEvent |
( |
int |
eventId | ) |
const |
|
inline |
◆ hasHint()
bool EventMap::hasHint |
( |
int |
eventId | ) |
const |
- Parameters
-
eventId | Event id to check. |
- Returns
- Whether a script exists for the provided
eventId
that shows a hint.
◆ hint()
std::string EventMap::hint |
( |
int |
eventId | ) |
const |
- Parameters
-
eventId | Event id to check. |
- Returns
- Hint to show, if any. Note that unlike
events()
, this function returns an empty string for non-existent events.
◆ load()
◆ _eventsById
std::unordered_map<int, std::vector<EventIR> > EventMap::_eventsById |
|
private |
The documentation for this class was generated from the following files: