![]() |
VR-Forces 4.10 Class Documentation
|
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically registered with the DtDe the first time instace() is called. More...

Public Member Functions | |
| virtual | ~DtVirtualBaseClassCreator () |
| DTOR. More... | |
| DtVirtualBaseClassCreator ()=delete | |
| not allowed More... | |
| DtVirtualBaseClassCreator (const DtVirtualBaseClassCreator &other)=delete | |
| Copy Constructor not implemented – Copy Not Allowed. More... | |
| DtVirtualBaseClassCreator & | operator= (const DtVirtualBaseClassCreator &other)=delete |
| Assignment Operator Not implemented – Assignment Not Allowed. More... | |
| virtual ClassToCreate * | create (ConstructorArgs &&...constructorArgs) |
| Create a DtVirtualBaseClassCreator object, calls ClassToCreate constructor with myDe and ConstructorArgs. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtVirtualBaseClassCreator & | instance (DtDe &de) |
| Get an instance of the creator, if it does not exist then register it with DtDe. More... | |
Protected Member Functions | |
| DtVirtualBaseClassCreator (DtDe &de) | |
| CTOR. More... | |
Protected Attributes | |
| DtDe & | myDe |
Static Protected Attributes | |
| static ClassToCreate * | classToCreateType |
| Should only be used by decltype() calls to get the type of the base class being created. More... | |
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically registered with the DtDe the first time instace() is called.
The ConstructorArgs define what is passed to the class being created's constructor (plus DtDe as the first argument). For example if the constructor for ClassToCreate is DtIndirectSwitchManager(DtDe& de, DtInstanceContainer& container); then the creator can be defined as: typedef DtVirtualBaseClassCreator<DtIndirectSwitchManager, DtInstanceContainer&> DtIndirectSwitchManagerCreator; notice the DtDe& is not included in the template parameters since it assumed all classes will take a DtDe& as the first parameter
|
virtual |
DTOR.
|
delete |
not allowed
|
delete |
Copy Constructor not implemented – Copy Not Allowed.
|
protected |
CTOR.
|
delete |
Assignment Operator Not implemented – Assignment Not Allowed.
|
static |
Get an instance of the creator, if it does not exist then register it with DtDe.
References makVrv::DtDe::findInstance(), and makVrv::DtDe::registerInstance().
|
virtual |
Create a DtVirtualBaseClassCreator object, calls ClassToCreate constructor with myDe and ConstructorArgs.
|
protected |
|
staticprotected |
Should only be used by decltype() calls to get the type of the base class being created.