Main Page Modules Namespaces C++ Classes Compound List File List Index
TemplateTNL::NetClassRepInstance< T > class Reference

TNL::NetClassRepInstance< T > Class Template Reference

#include <tnlNetBase.h>

Inheritance diagram for TNL::NetClassRepInstance< T >:

TNL::NetClassRep

Detailed Description

template<class T>
class TNL::NetClassRepInstance< T >

NetClassRepInstance - one of these templates is instantiated for each class that is declared via the IMPLEMENT_* macros below.

There will be an instance for each networkable class.


Public Member Functions

 NetClassRepInstance (const char *className, U32 groupMask, NetClassType classType, S32 classVersion)
 Each class registers itself through the constructor of its NetClassInstance.

 ~NetClassRepInstance ()
Objectcreate () const
 Each NetClassRepInstance overrides the virtual create() function to construct its object instances.


Constructor & Destructor Documentation

template<class T>
TNL::NetClassRepInstance< T >::NetClassRepInstance const char *  className,
U32  groupMask,
NetClassType  classType,
S32  classVersion
[inline]
 

Each class registers itself through the constructor of its NetClassInstance.

template<class T>
TNL::NetClassRepInstance< T >::~NetClassRepInstance  )  [inline]
 


Member Function Documentation

template<class T>
Object* TNL::NetClassRepInstance< T >::create  )  const [inline, virtual]
 

Each NetClassRepInstance overrides the virtual create() function to construct its object instances.

Implements TNL::NetClassRep.