Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | List of all members
orxonox::ClassFactoryWithContext< T > Class Template Reference

The ClassFactoryWithContext is able to create new objects of a specific class that require a context as constructor argument. More...

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/core/CorePrereqs.h>

Inheritance diagram for orxonox::ClassFactoryWithContext< T >:
orxonox::ClassFactory< T > orxonox::Factory

Public Member Functions

Identifiablefabricate (Context *context)
 Creates and returns a new object of class T. More...
 
- Public Member Functions inherited from orxonox::Factory
 Factory ()=default
 
virtual ~Factory ()=default
 

Detailed Description

template<class T>
class orxonox::ClassFactoryWithContext< T >

The ClassFactoryWithContext is able to create new objects of a specific class that require a context as constructor argument.

Member Function Documentation

template<class T >
Identifiable* orxonox::ClassFactoryWithContext< T >::fabricate ( Context context)
inlinevirtual

Creates and returns a new object of class T.

Returns
The new object

Implements orxonox::Factory.


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