An EventInstance is a single instance of a simulation event such as Fire or Detonate.
More...
An EventInstance is a single instance of a simulation event such as Fire or Detonate.
EventInstances are created by the EventManager. The may not be created on the stack or heap by the user. In order to create an EventInstance, a type of EventInstance must be registered with the EventManager, then the user my request an EventInstance from the EventManager. EventInstances are only valid in the frame that are created (when sending) or when delivered. The underlying memory is invalidated at the end of the frame.
| Legion::EventInstance::EventInstance |
( |
const EventInstance & |
orig | ) |
|
| Legion::EventInstance::EventInstance |
( |
EventHandle |
handle | ) |
|
|
protected |
| virtual Legion::EventInstance::~EventInstance |
( |
| ) |
|
|
protectedvirtual |
template<typename DATA_TYPE >
| DATA_TYPE Legion::EventInstance::data |
( |
ParameterId |
parameterId | ) |
const |
Returns the data of a given parameter.
template<typename DATA_TYPE >
| const Span<DATA_TYPE> Legion::EventInstance::dataArray |
( |
ParameterId |
parameterId | ) |
const |
Returns an array of data for a given parameters, if the particular parameter's cardinality is greater than one.
Get the length of the parameter if it is an array.
Returns the event handle to the internal representation.
template<typename DATA_TYPE >
| void Legion::EventInstance::setData |
( |
ParameterId |
parameterId, |
|
|
const DATA_TYPE & |
val |
|
) |
| |
Sets a given parameters value.
template<typename DATA_TYPE >
| void Legion::EventInstance::setDataArray |
( |
ParameterId |
parameterId, |
|
|
const Span< DATA_TYPE > & |
val |
|
) |
| |
Sets a given parameter to an array of values, if the particular parameter's cardinality is greater than one.
| void Legion::EventInstance::setDataArrayLength |
( |
ParameterId |
paramId, |
|
|
UInt32 |
length |
|
) |
| |
Set the length of a variable length array parameter. This only works for variable length array parameters.
| EventId Legion::EventInstance::typeId |
( |
| ) |
const |
Returns the type ID of the event.
The documentation for this class was generated from the following file: