SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::helper::Creator< Factory, RealObject > Class Template Reference

#include <Factory.h>

Inheritance diagram for sofa::helper::Creator< Factory, RealObject >:

Public Member Functions

 Creator (Key key, bool multi=false)
 
ObjectPtr createInstance (Argument arg)
 
const std::type_info & type ()
 
void registerInFactory ()
 
const KeygetKey () const
 
- Public Member Functions inherited from sofa::helper::BaseCreator< Object, Argument, ObjectPtr >
virtual ~BaseCreator ()
 
virtual ObjectPtr createInstance (Argument arg)=0
 

Constructor details

◆ Creator()

template<class Factory , class RealObject >
sofa::helper::Creator< Factory, RealObject >::Creator ( Key  key,
bool  multi = false 
)
inlineexplicit

Function details

◆ createInstance()

template<class Factory , class RealObject >
ObjectPtr sofa::helper::Creator< Factory, RealObject >::createInstance ( Argument  arg)
inline

◆ getKey()

template<class Factory , class RealObject >
const Key& sofa::helper::Creator< Factory, RealObject >::getKey ( ) const
inline

◆ registerInFactory()

template<class Factory , class RealObject >
void sofa::helper::Creator< Factory, RealObject >::registerInFactory ( )
inline

◆ type()

template<class Factory , class RealObject >
const std::type_info& sofa::helper::Creator< Factory, RealObject >::type ( )
inlinevirtual