opensurgsim
Public Types | Static Public Member Functions | List of all members
SurgSim::Framework::FactoryBase< T > 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 <ObjectFactory.h>

Public Types

typedef ObjectFactory< T > FactoryType
 

Static Public Member Functions

static FactoryTypegetFactory ()
 

Detailed Description

template<class T>
class SurgSim::Framework::FactoryBase< T >

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

Member Function Documentation

§ getFactory()

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

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