![]() |
VR-Link API Documentation for DIS
|
An instance of this class is a DtDatumRecordSet that uses a part of a DtPduWithData as its network representation. More...
Inheritance diagram for DtPduDatumRecordSet:
Collaboration diagram for DtPduDatumRecordSet:Public Member Functions | |
| DtPduDatumRecordSet (DtPduWithData *pdu) | |
| Constructor. | |
| virtual | ~DtPduDatumRecordSet () |
| Destructor. | |
| DtPduDatumRecordSet (const DtPduDatumRecordSet &orig) | |
| Copy ctor. | |
| DtPduDatumRecordSet & | operator= (const DtPduDatumRecordSet &orig) |
| Assignment operator. | |
Protected Member Functions | |
| virtual void | changeSize (int size) |
| Changes the size of the datumRecSet, by asking my PDU to change size, then reinitializing to use the right piece of the PDU's buffer. | |
| virtual void | insertBytes (int offset, int numBytes) |
| Inserts numBytes zeroed-out bytes at the indicated offset into the net rep, by asking my PDU to insert bytes, then reinitializing to use the right piece of the PDU's buffer. | |
| virtual void | insertBytes (void *addr, int numBytes) |
| Inserts numBytes zeroed-out bytes at the indicated addr within the net rep, by asking my PDU to insert bytes, then reinitializing to use the right piece of the PDU's buffer. | |
| virtual void | deleteBytes (int offset, int numBytes) |
| Deletes numBytes bytes at the indicated offset in the net rep, by asking my PDU to insert bytes, then reinitializing to use the right piece of the PDU's buffer. | |
| virtual void | deleteBytes (void *addr, int numBytes) |
| Deletes numBytes bytes at the indicated addr within the net rep, by asking my PDU to insert bytes, then reinitializing to use the right piece of the PDU's buffer. | |
Protected Attributes | |
| DtPduWithData * | myPdu |
An instance of this class is a DtDatumRecordSet that uses a part of a DtPduWithData as its network representation.
Normally, a DtDatumRecord manages the memory associated with its network representation through its DtBaseMsg base class. However, since a DtPduWithData's netRep memory is managed by that DtPduWithData, DtPduDatumRecordSets must defer ITS memory management responsibilities to the DtPduWithData. This is accomplished by overriding changeSize, addBytes and deleteBytes here, with versions that call the DtPduWithData's versions of the functions. No one should need to use this class, except for DtPduWithData.
Constructor.
| virtual DtPduDatumRecordSet::~DtPduDatumRecordSet | ( | ) | [virtual] |
Destructor.
| DtPduDatumRecordSet::DtPduDatumRecordSet | ( | const DtPduDatumRecordSet & | orig | ) |
Copy ctor.
| virtual void DtPduDatumRecordSet::changeSize | ( | int | size | ) | [protected, virtual] |
Changes the size of the datumRecSet, by asking my PDU to change size, then reinitializing to use the right piece of the PDU's buffer.
Reimplemented from DtBaseMsg.
| virtual void DtPduDatumRecordSet::deleteBytes | ( | int | offset, |
| int | numBytes | ||
| ) | [protected, virtual] |
Deletes numBytes bytes at the indicated offset in the net rep, by asking my PDU to insert bytes, then reinitializing to use the right piece of the PDU's buffer.
Reimplemented from DtBaseMsg.
| virtual void DtPduDatumRecordSet::deleteBytes | ( | void * | addr, |
| int | numBytes | ||
| ) | [protected, virtual] |
Deletes numBytes bytes at the indicated addr within the net rep, by asking my PDU to insert bytes, then reinitializing to use the right piece of the PDU's buffer.
Reimplemented from DtBaseMsg.
| virtual void DtPduDatumRecordSet::insertBytes | ( | int | offset, |
| int | numBytes | ||
| ) | [protected, virtual] |
Inserts numBytes zeroed-out bytes at the indicated offset into the net rep, by asking my PDU to insert bytes, then reinitializing to use the right piece of the PDU's buffer.
Reimplemented from DtBaseMsg.
| virtual void DtPduDatumRecordSet::insertBytes | ( | void * | addr, |
| int | numBytes | ||
| ) | [protected, virtual] |
Inserts numBytes zeroed-out bytes at the indicated addr within the net rep, by asking my PDU to insert bytes, then reinitializing to use the right piece of the PDU's buffer.
Reimplemented from DtBaseMsg.
| DtPduDatumRecordSet& DtPduDatumRecordSet::operator= | ( | const DtPduDatumRecordSet & | orig | ) |
Assignment operator.
DtPduWithData* DtPduDatumRecordSet::myPdu [protected] |