MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType > Class Template Reference

The template for an RTI message parameter which is actually an array of items of the same type. More...

+ Inheritance diagram for DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >:
+ Collaboration diagram for DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >:

Public Member Functions

 DtRtiArrayMsgParam (const char *paramName, AllocatedMsgParamType *allocatedNum)
 
 ~DtRtiArrayMsgParam ()
 
bool addParam (ParamType val)
 Adds a new parameter data item to the array. More...
 
bool setParams (const ParamType *vals, unsigned num)
 Sets the entire contents of the array. More...
 
template<typename ParamContainerType >
bool setParams (const ParamContainerType &container)
 Sets the entire contents of the array. More...
 
template<typename ParamContainerType >
void getParams (ParamContainerType &container) const
 Populates the container with all of the parameter data in this parameter array. More...
 
unsigned getParams (ParamType *buff) const
 Populates the buffer with all of the parameter data in this parameter array. More...
 
bool getFirstParam (ParamType &val) const
 Gets the value of the first parameter item in the array and resets the index for getNextParam(). More...
 
bool getNextParam (ParamType &val) const
 Gets the value of the next parameter item in the array. 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, which is 0 since it could be an empty array. More...
 
unsigned elementSize ()
 Returns the size of single element in this parameter. More...
 
unsigned numItems () const
 Returns the number of items in this array. More...
 
void setNumItems (unsigned num)
 Sets the number of items in this array. More...
 
void print () const
 Prints the parameter. More...
 
void setOctetBoundary (unsigned prevBoundary)
 Sets the octet boundary of the parameter in the message. 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 Member Functions

 DtRtiArrayMsgParam (const DtRtiArrayMsgParam &)
 
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)
 

Protected Attributes

AllocatedMsgParamType * myAllocatedNumParam
 The parameter which specifies how many elements can fit in the space allotted for this array. More...
 
unsigned myNumUsed
 The number of items currently used in the array. More...
 
unsigned myMutableNextParamIndex
 The index to the next item to be retrieved by nextParam. More...
 
- Protected Attributes inherited from DtRtiBaseMsgParam
DtRtiBaseMsgParammyPrevParam
 Pointer to the previous parameter in this message. More...
 
unsigned myOctetBoundary
 Octet boundary of this parameter. More...
 
const char * myName
 The parameter name. More...
 

Detailed Description

template<typename ParamType, typename ConvParamType, typename NetParamType, typename AllocatedMsgParamType>
class DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >

The template for an RTI message parameter which is actually an array of items of the same type.

Constructor & Destructor Documentation

template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::DtRtiArrayMsgParam ( const char *  paramName,
AllocatedMsgParamType *  allocatedNum 
)
inline
template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::~DtRtiArrayMsgParam ( )
inline
template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::DtRtiArrayMsgParam ( const DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType > &  )
protected

Member Function Documentation

template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
bool DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::addParam ( ParamType  val)
inline
template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
unsigned DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::elementSize ( )
inlinevirtual

Returns the size of single element in this parameter.

Implements DtRtiBaseMsgParam.

template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
void* DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::endPtr ( )
inlinevirtual
template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
const void* DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::endPtr ( ) const
inlinevirtual
template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
bool DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::getFirstParam ( ParamType &  val) const
inline
template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
bool DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::getNextParam ( ParamType &  val) const
inline
template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
template<typename ParamContainerType >
void DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::getParams ( ParamContainerType &  container) const
inline
template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
unsigned DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::getParams ( ParamType *  buff) const
inline
template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
unsigned DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::minSize ( )
inlinevirtual

Returns the minimum size of this parameter, which is 0 since it could be an empty array.

Implements DtRtiBaseMsgParam.

template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
unsigned DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::numItems ( ) const
inline
template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
NetParamType* DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::paramPtr ( )
inlineprotected

Returns a pointer to location of this parameter in the message.

References DtRtiBaseMsgParam::beginPtr().

Referenced by DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::addParam(), DtRtiArrayMsgParam< MAKRti::DtInetAddr, MAKRti::DtU128, MAKRti::DtNetU128, AllocatedMsgParamType >::addParam(), DtRtiArrayMsgParam< char, char, char, AllocatedMsgParamType >::addParams(), DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::endPtr(), DtRtiArrayMsgParam< MAKRti::DtInetAddr, MAKRti::DtU128, MAKRti::DtNetU128, AllocatedMsgParamType >::endPtr(), DtRtiArrayMsgParam< char, char, char, AllocatedMsgParamType >::endPtr(), DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::getFirstParam(), DtRtiArrayMsgParam< MAKRti::DtInetAddr, MAKRti::DtU128, MAKRti::DtNetU128, AllocatedMsgParamType >::getFirstParam(), DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::getNextParam(), DtRtiArrayMsgParam< MAKRti::DtInetAddr, MAKRti::DtU128, MAKRti::DtNetU128, AllocatedMsgParamType >::getNextParam(), DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::getParams(), DtRtiArrayMsgParam< MAKRti::DtInetAddr, MAKRti::DtU128, MAKRti::DtNetU128, AllocatedMsgParamType >::getParams(), DtRtiArrayMsgParam< char, char, char, AllocatedMsgParamType >::getParams(), DtRtiArrayMsgParam< char, char, char, AllocatedMsgParamType >::getSubStrings(), DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::setParams(), DtRtiArrayMsgParam< MAKRti::DtInetAddr, MAKRti::DtU128, MAKRti::DtNetU128, AllocatedMsgParamType >::setParams(), and DtRtiArrayMsgParam< char, char, char, AllocatedMsgParamType >::setSubStrings().

template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
const NetParamType* DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::paramPtr ( ) const
inlineprotected
template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
void DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::print ( ) const
inlinevirtual
template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
void DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::setNumItems ( unsigned  num)
inline
template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
void DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::setOctetBoundary ( unsigned  prevBoundary)
inlinevirtual

Sets the octet boundary of the parameter in the message.

For arrays the the octet boundary is always the size of one element, since we cannot guarantee anything else.

Implements DtRtiBaseMsgParam.

References DtRtiBaseMsgParam::myOctetBoundary.

template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
bool DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::setParams ( const ParamType *  vals,
unsigned  num 
)
inline

Sets the entire contents of the array.

If there is not enough allocated space, returns false and makes no change.

References DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::myNumUsed, and DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::paramPtr().

template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
template<typename ParamContainerType >
bool DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::setParams ( const ParamContainerType &  container)
inline

Member Data Documentation

template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
AllocatedMsgParamType* DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::myAllocatedNumParam
protected

The parameter which specifies how many elements can fit in the space allotted for this array.

Referenced by DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::addParam(), DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::DtRtiArrayMsgParam(), DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::endPtr(), DtRtiArrayMsgParam< MAKRti::DtInetAddr, MAKRti::DtU128, MAKRti::DtNetU128, AllocatedMsgParamType >::endPtr(), DtRtiArrayMsgParam< char, char, char, AllocatedMsgParamType >::endPtr(), DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::getFirstParam(), DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::getNextParam(), DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::getParams(), DtRtiArrayMsgParam< char, char, char, AllocatedMsgParamType >::getParams(), DtRtiArrayMsgParam< char, char, char, AllocatedMsgParamType >::getSubStrings(), DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::numItems(), DtRtiArrayMsgParam< MAKRti::DtInetAddr, MAKRti::DtU128, MAKRti::DtNetU128, AllocatedMsgParamType >::numItems(), DtRtiArrayMsgParam< char, char, char, AllocatedMsgParamType >::numItems(), DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::setNumItems(), DtRtiArrayMsgParam< MAKRti::DtInetAddr, MAKRti::DtU128, MAKRti::DtNetU128, AllocatedMsgParamType >::setNumItems(), DtRtiArrayMsgParam< char, char, char, AllocatedMsgParamType >::setNumItems(), DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::setParams(), and DtRtiArrayMsgParam< char, char, char, AllocatedMsgParamType >::setSubStrings().

template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
unsigned DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::myMutableNextParamIndex
mutableprotected
template<typename ParamType , typename ConvParamType , typename NetParamType , typename AllocatedMsgParamType >
unsigned DtRtiArrayMsgParam< ParamType, ConvParamType, NetParamType, AllocatedMsgParamType >::myNumUsed
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)