#include <BasicDynamicClassNodeBase.h>


Public Member Functions | |
| BasicDynamicClassNodeBase () | |
| virtual unsigned int | getSize () const =0 |
| virtual void | _init (void *x)=0 |
| void * | getNode (const void *x) const |
| void | registerNode (BasicDynamicClassFactory *factory) |
Protected Member Functions | |
| void | setOffset (const unsigned int offset) |
| virtual | ~BasicDynamicClassNodeBase () |
Protected Attributes | |
| BasicDynamicClassFactory * | factory |
| unsigned int | offset |
Friends | |
| class | BasicDynamicClassFactory |
If you don't understand this class don't use it!
Definition at line 37 of file BasicDynamicClassNodeBase.h.
| BasicDynamicClassNodeBase::BasicDynamicClassNodeBase | ( | ) | [inline] |
Definition at line 43 of file BasicDynamicClassNodeBase.h.
| virtual BasicDynamicClassNodeBase::~BasicDynamicClassNodeBase | ( | ) | [inline, protected, virtual] |
Definition at line 82 of file BasicDynamicClassNodeBase.h.
| virtual unsigned int BasicDynamicClassNodeBase::getSize | ( | ) | const [pure virtual] |
See BasicDynamicClassNode::getSize()
Implemented in BasicDynamicClassNode< T >, and BasicDynamicClassNode< CompuCell3D::CellTypeNode >.
Referenced by BasicDynamicClassFactory::registerNode().
| virtual void BasicDynamicClassNodeBase::_init | ( | void * | x | ) | [pure virtual] |
See BasicDynamicClassNode::_init()
Implemented in BasicDynamicClassNode< T >, and BasicDynamicClassNode< CompuCell3D::CellTypeNode >.
| void * BasicDynamicClassNodeBase::getNode | ( | const void * | x | ) | const |
This function should not be used directly because it is not type safe.
| x | The dynamic class. |
Definition at line 30 of file BasicDynamicClassNodeBase.cpp.
References ASSERT_OR_THROW, factory, and offset.
Referenced by BasicDynamicClassNode< CompuCell3D::CellTypeNode >::get().
| void BasicDynamicClassNodeBase::registerNode | ( | BasicDynamicClassFactory * | factory | ) |
Register this node with the factory. If this node has already been registered with some factory a BasicException will be thrown.
| factory | The factory with which to register. |
Definition at line 38 of file BasicDynamicClassNodeBase.cpp.
References ASSERT_OR_THROW, and BasicDynamicClassFactory::registerNode().
| void BasicDynamicClassNodeBase::setOffset | ( | const unsigned int | offset | ) | [inline, protected] |
Called by BasicDynamicClassFactory to set the offset in the dynamic class to this class node.
| offset | The byte offset. |
Definition at line 80 of file BasicDynamicClassNodeBase.h.
Referenced by BasicDynamicClassFactory::registerNode().
friend class BasicDynamicClassFactory [friend] |
Definition at line 84 of file BasicDynamicClassNodeBase.h.
unsigned int BasicDynamicClassNodeBase::offset [protected] |
1.5.6