VR-Link API Documentation for DIS
Public Member Functions | Protected Member Functions | Protected Attributes
DtPduDatumRecordSet Class Reference

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:

List of all members.

Public Member Functions

 DtPduDatumRecordSet (DtPduWithData *pdu)
 Constructor.
virtual ~DtPduDatumRecordSet ()
 Destructor.
 DtPduDatumRecordSet (const DtPduDatumRecordSet &orig)
 Copy ctor.
DtPduDatumRecordSetoperator= (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

DtPduWithDatamyPdu

Detailed Description

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 & Destructor Documentation

Constructor.

Destructor.

Copy ctor.


Member Function Documentation

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.


Member Data Documentation


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

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)