|
My Project
|
Public Member Functions | |
| NetUnion () | |
| NetUnion (const NetUnion &netUnion) | |
| NetUnion (NetUnion &netUnion) | |
| NetUnion & | operator= (const NetUnion &netUnion) |
| NetUnion & | operator= (NetUnion &netUnion) |
| virtual | ~NetUnion () |
| void | addMember (unsigned id, NetDat *member=0, bool alloc=false) |
| void | addVar (unsigned id, gcp::util::DataType::Type type, void *vPtr, unsigned nEl) |
| void | addCase (unsigned id) |
| NetDat *const | findMember (unsigned id) |
| bool | memberIsValid (unsigned id) |
| NetDat *const | getMember (unsigned id) |
| void | setTo (unsigned id) |
| unsigned | getType () |
| unsigned | sizeOf (unsigned id) |
| unsigned | size () |
| void | deserialize (const std::vector< unsigned char > &bytes) |
| void | deserialize (const unsigned char *bytes) |
Public Member Functions inherited from gcp::util::NetDat | |
| NetDat () | |
| NetDat (const NetDat &netDat) | |
| NetDat (NetDat &netDat) | |
| void | operator= (const NetDat &netDat) |
| void | operator= (NetDat &netDat) |
| virtual | ~NetDat () |
| virtual std::vector< unsigned char > & | getSerializedData () |
| virtual void | packSerializedData (unsigned char *bytes) |
| unsigned | maxSize () |
| bool | send (int fd) |
| bool | recv (int fd) |
Static Public Attributes | |
| static const unsigned | NETUNION_UNKNOWN = 0 |
Additional Inherited Members | |
Protected Member Functions inherited from gcp::util::NetDat | |
| unsigned char *const | getSerializedDataPtr () |
Protected Attributes inherited from gcp::util::NetDat | |
| std::vector< unsigned char > | bytes_ |
| unsigned | maxSize_ |
| NetUnion::NetUnion | ( | ) |
Constructor.
....................................................................... Constructor.
| NetUnion::NetUnion | ( | const NetUnion & | netUnion | ) |
Conunionor.
....................................................................... Copy constructors - we don't want to copy members_, as this contains pointers to private memory locations in each object
|
virtual |
Destructor.
....................................................................... Destructor.
| void NetUnion::addCase | ( | unsigned | id | ) |
Add just an id
....................................................................... Add just an id
| void NetUnion::addMember | ( | unsigned | id, |
| NetDat * | netDat = 0, |
||
| bool | alloc = false |
||
| ) |
Register a member
....................................................................... Add a member
| void NetUnion::addVar | ( | unsigned | id, |
| gcp::util::DataType::Type | type, | ||
| void * | vPtr, | ||
| unsigned | nEl | ||
| ) |
Add a variable to the internal vector of members
....................................................................... Add a variable to the internal vector of members
|
virtual |
De-serialize data into this struct
....................................................................... De-serialize data into this struct
Reimplemented from gcp::util::NetDat.
|
virtual |
Private deserialization method
....................................................................... Private deserialization method
Implements gcp::util::NetDat.
| NetDat *const NetUnion::findMember | ( | unsigned | id | ) |
Get a member by id
....................................................................... Find a member by id
| NetDat *const NetUnion::getMember | ( | unsigned | id | ) |
Find a member
....................................................................... Find a member by id
| unsigned NetUnion::getType | ( | ) |
Return the message type
....................................................................... Return the message type
| bool NetUnion::memberIsValid | ( | unsigned | id | ) |
....................................................................... Find a member by id
....................................................................... Assignment operators
| void NetUnion::setTo | ( | unsigned | id | ) |
Set the internal id to the requested member
....................................................................... Set this union to the requested member
|
virtual |
Return the actual size of this object
....................................................................... Return the size of this object
Reimplemented from gcp::util::NetDat.
| unsigned NetUnion::sizeOf | ( | unsigned | id | ) |
Return the size of the member associated with this id
....................................................................... Return the size of the requested member