SOFA API  c76874b7
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

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

Constructor details

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

Function details

template<class Factory , class RealObject >
ObjectPtr sofa::helper::CreatorFn< Factory, RealObject >::createInstance ( Argument  arg)
inline
template<class Factory , class RealObject >
const std::type_info& sofa::helper::CreatorFn< Factory, RealObject >::type ( )
inlinevirtual