![]() |
MAK RTIspy API Documentation for HLA Evolved
|
The template for an RTI message parameter which is actually the size of an array. More...
Inheritance diagram for DtRtiArraySizeMsgParam< ParamType, NetParamType >:
Collaboration diagram for DtRtiArraySizeMsgParam< ParamType, NetParamType >:Public Member Functions | |
| DtRtiArraySizeMsgParam (const char *paramName) | |
| ~DtRtiArraySizeMsgParam () | |
| void | registerArray (DtRtiBaseMsgParam *arrayParam) |
| Registers an array parameter which uses this parameter as a record of its size. More... | |
| unsigned | bytesNeeded (unsigned num) const |
| Returns the number of bytes needed to hold the number of items specified. More... | |
| const void * | firstArrayPtr () const |
| Returns the location of the first array whose size is held by this parameter. More... | |
| void * | firstArrayPtr () |
Public Member Functions inherited from DtRtiMsgParam< ParamType, NetParamType > | |
| DtRtiMsgParam (const char *paramName) | |
| ~DtRtiMsgParam () | |
| void | setParam (ParamType val) |
| Sets the value of the parameter. More... | |
| void | setParamRef (const ParamType &val) |
| Sets the value of the parameter by reference. More... | |
| ParamType | param () const |
| Gets the value of the parameter. More... | |
| void | getParam (ParamType &val) const |
| Gets the value of the parameter by reference. More... | |
| void * | endPtr () |
| Returns a pointer to location just after this parameter in the message. More... | |
| const void * | endPtr () const |
| unsigned | minSize () |
| Returns the minimum size of this parameter. More... | |
| unsigned | elementSize () |
| Returns the size of single element in this parameter. More... | |
| void | print () const |
| Prints the parameter. More... | |
| void | setOctetBoundary (unsigned prevBoundary) |
| Sets the octet boundary of the parameter in the message based on the boundary of this parameter and the boundary of the previous parameter. More... | |
Public Member Functions inherited from DtRtiBaseMsgParam | |
| ~DtRtiBaseMsgParam () | |
| void | setPrevParam (DtRtiBaseMsgParam *prevParam) |
| Sets the pointer to the previous parameter in the message. More... | |
| void * | beginPtr () |
| Returns a pointer to the start of this parameter in the message. More... | |
| const void * | beginPtr () const |
| virtual const char * | name () const |
| Returns the parameter name. More... | |
| unsigned | octetBoundary () const |
| Returns the octet boundary of the parameter in the message. More... | |
Protected Attributes | |
| std::list< DtRtiBaseMsgParam * > | myArrayParams |
| List of arrays using this as their size. More... | |
Protected Attributes inherited from DtRtiBaseMsgParam | |
| DtRtiBaseMsgParam * | myPrevParam |
| Pointer to the previous parameter in this message. More... | |
| unsigned | myOctetBoundary |
| Octet boundary of this parameter. More... | |
| const char * | myName |
| The parameter name. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from DtRtiMsgParam< ParamType, NetParamType > | |
| DtRtiMsgParam (const DtRtiMsgParam &) | |
| NetParamType * | paramPtr () |
| Returns a pointer to location of this parameter in the message. More... | |
| const NetParamType * | paramPtr () const |
Protected Member Functions inherited from DtRtiBaseMsgParam | |
| DtRtiBaseMsgParam (const char *paramName) | |
The template for an RTI message parameter which is actually the size of an array.
|
inline |
|
inline |
|
inline |
Returns the number of bytes needed to hold the number of items specified.
References DtRtiArraySizeMsgParam< ParamType, NetParamType >::myArrayParams.
|
inline |
Returns the location of the first array whose size is held by this parameter.
References DtRtiArraySizeMsgParam< ParamType, NetParamType >::myArrayParams.
|
inline |
|
inline |
Registers an array parameter which uses this parameter as a record of its size.
It's possible for multiple arrays to share the same size parameter. Whenever this size is increased, it will automatically allocate memory for all of its associated arrays. It DOES NOT support automatically shrinking an array.
References DtRtiArraySizeMsgParam< ParamType, NetParamType >::myArrayParams.
|
protected |
List of arrays using this as their size.
Referenced by DtRtiArraySizeMsgParam< ParamType, NetParamType >::bytesNeeded(), DtRtiArraySizeMsgParam< ParamType, NetParamType >::firstArrayPtr(), and DtRtiArraySizeMsgParam< ParamType, NetParamType >::registerArray().