Public Types | Static Public Member Functions | List of all members
SurgSim::Framework::FactoryBase1< T, P > Class Template Reference

CRTP Base class to implement Object Factory functionality on a base class, use this rather than writing your own functions to return the factory. More...

#include <SurgSim/Framework/ObjectFactory.h>

Public Types

typedef ObjectFactory1< T, P > FactoryType
 

Static Public Member Functions

static FactoryTypegetFactory ()
 

Detailed Description

template<class T, class P>
class SurgSim::Framework::FactoryBase1< T, P >

CRTP Base class to implement Object Factory functionality on a base class, use this rather than writing your own functions to return the factory.

Template Parameters
Tbase class of the generated objects
Pconstructor parameter for object generation

Member Typedef Documentation

◆ FactoryType

template<class T, class P>
typedef ObjectFactory1<T, P> SurgSim::Framework::FactoryBase1< T, P >::FactoryType

Member Function Documentation

◆ getFactory()

template<class T, class P>
static FactoryType& SurgSim::Framework::FactoryBase1< T, P >::getFactory ( )
inlinestatic
Returns
a reference to the factory

The documentation for this class was generated from the following file: