![]() |
MAK Data Logger API Documentation for DIS
|
Variable length data object compile-time compatible with the RTI 1516 implementation. More...
Collaboration diagram for MAKLogger::DtLgrVariableLengthData:Public Member Functions | |
| DtLgrVariableLengthData () | |
| DtLgrVariableLengthData (void const *inData, unsigned long inSize) | |
| Initialize the object with a copy of inData for inSize. More... | |
| DtLgrVariableLengthData (DtLgrVariableLengthData const &rhs) | |
| ~DtLgrVariableLengthData () | |
| bool | operator< (const DtLgrVariableLengthData &rhs) const |
| Comparison operator. More... | |
| bool | operator== (const DtLgrVariableLengthData &rhs) const |
| Comparison operator. More... | |
| DtLgrVariableLengthData & | operator= (DtLgrVariableLengthData const &rhs) |
| Caller is free to delete rhs after the call. More... | |
| void const * | data () const |
| This pointer should not be expected to be valid past the lifetime of this object, or past the next time this object is given new data. More... | |
| void * | data () |
| unsigned int | size () const |
| void | setData (void const *inData, unsigned long inSize) |
| Caller is free to delete inData after the call. More... | |
| void | setDataPointer (void *inData, unsigned long inSize) |
| Manually sets the data pointer and size, existing data pointer is not deallocated. More... | |
| void | takeDataPointer (void *inData, unsigned long inSize) |
| Caller gives up ownership of inData to this object. More... | |
| void | releaseDataPointer () |
| VariableLengthData releases ownership of memory and sets internal pointer to null. More... | |
Private Attributes | |
| void * | myData |
| unsigned long | mySize |
Variable length data object compile-time compatible with the RTI 1516 implementation.
|
inline |
|
inline |
Initialize the object with a copy of inData for inSize.
|
inline |
|
inline |
|
inline |
This pointer should not be expected to be valid past the lifetime of this object, or past the next time this object is given new data.
Referenced by DtLgrVariableLengthData(), operator<(), operator=(), and operator==().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
VariableLengthData releases ownership of memory and sets internal pointer to null.
The caller is responsible for getting the data pointer first and managing the memory.
|
inline |
Caller is free to delete inData after the call.
|
inline |
Manually sets the data pointer and size, existing data pointer is not deallocated.
If in data is void object essentially gives up repsonsibility to memory.
|
inline |
Referenced by DtLgrVariableLengthData(), operator<(), operator=(), and operator==().
|
inline |
Caller gives up ownership of inData to this object.
This object assumes the responsibility of deleting inData when it is no longer needed.
|
private |
|
private |