![]() |
VR-Forces 5.0.2 Developer's Guide
|
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.

Public Member Functions | |
| virtual | ~DtVirtualBaseClassCreator () |
| DtVirtualBaseClassCreator ()=delete | |
| DtVirtualBaseClassCreator (const DtVirtualBaseClassCreator &other)=delete | |
| DtVirtualBaseClassCreator & | operator= (const DtVirtualBaseClassCreator &other)=delete |
| virtual ClassToCreate * | create (ConstructorArgs &&...constructorArgs) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtVirtualBaseClassCreator & | instance (DtDe &de) |
Protected Member Functions | |
| DtVirtualBaseClassCreator (DtDe &de) | |
Protected Attributes | |
| DtDe & | myDe |
Static Protected Attributes | |
| static ClassToCreate * | classToCreateType |
|
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.