|
Public Member Functions |
U32 | getClassId (NetClassGroup classGroup) const |
| Returns the class ID, within its type, for the particular group.
|
NetClassType | getClassType () const |
| Returns the NetClassType of this class.
|
S32 | getClassVersion () const |
| Returns the version of this class.
|
const char * | getClassName () const |
| Returns the string class name.
|
void | addInitialUpdate (U32 bitCount) |
| Records bits used in the initial update of objects of this class.
|
void | addPartialUpdate (U32 bitCount) |
| Records bits used in a partial update of an object of this class.
|
virtual Object * | create () const=0 |
| Creates an instance of the class this represents.
|
Static Public Member Functions |
U32 | getNetClassCount (U32 classGroup, U32 classType) |
| Returns the number of classes registered under classGroup and classType.
|
U32 | getNetClassBitSize (U32 classGroup, U32 classType) |
| Returns the number of bits necessary to transmit class ids of the specified classGroup and classType.
|
bool | isVersionBorderCount (U32 classGroup, U32 classType, U32 count) |
| Returns true if the given class count is on a version boundary.
|
NetClassRep * | getClass (U32 classGroup, U32 classType, U32 index) |
U32 | getClassGroupCRC (NetClassGroup classGroup) |
| Returns a CRC of class data, for checking on connection.
|
void | initialize () |
| Initializes the class table and associated data - called from TNL::init().
|
void | logBitUsage () |
| Logs the bit usage information of all the NetClassReps.
|
Protected Member Functions |
| NetClassRep () |
virtual | ~NetClassRep () |
Static Protected Member Functions |
|
These helper functions let you create an instance of a class by name or ID.
- Note:
- Call Object::create() instead of these.
|
Object * | create (const char *className) |
Object * | create (const U32 groupId, const U32 typeId, const U32 classId) |
Protected Attributes |
U32 | mClassGroupMask |
| Mask for which class groups this class belongs to.
|
S32 | mClassVersion |
| The version number for this class.
|
NetClassType | mClassType |
| Which class type is this?
|
U32 | mClassId [NetClassGroupCount] |
| The id for this class in each class group.
|
char * | mClassName |
| The unmangled name of the class.
|
U32 | mInitialUpdateBitsUsed |
| Number of bits used on initial updates of objects of this class.
|
U32 | mPartialUpdateBitsUsed |
| Number of bits used on partial updates of objects of this class.
|
U32 | mInitialUpdateCount |
| Number of objects of this class constructed over a connection.
|
U32 | mPartialUpdateCount |
| Number of objects of this class updated over a connection.
|
NetClassRep * | mNextClass |
| Next declared NetClassRep.
|
Static Protected Attributes |
NetClassRep * | mClassLinkList |
| Head of the linked class list.
|
Vector< NetClassRep * > | mClassTable [NetClassGroupCount][NetClassTypeCount] |
| Table of NetClassReps for construction by class ID.
|
U32 | mClassCRC [NetClassGroupCount] |
| Internally computed class group CRC.
|
bool | mInitialized |
| Set once the class tables are built, from initialize.
|
U32 | mNetClassBitSize [NetClassGroupCount][NetClassTypeCount] |
| mNetClassBitSize is the number of bits needed to transmit the class ID for a group and type.
|
Friends |
class | Object |