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

#include <Factory.h>

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

Public Attributes

Fnconstructor
 

Public Member Functions

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

Attribute details

◆ constructor

template<class Factory , class RealObject >
Fn* sofa::helper::CreatorFn< Factory, RealObject >::constructor

Constructor details

◆ CreatorFn()

template<class Factory , class RealObject >
sofa::helper::CreatorFn< Factory, RealObject >::CreatorFn ( Key  key,
Fn constructor,
bool  multi = false 
)
inline

Function details

◆ createInstance()

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

◆ type()

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