![]() |
Wallaroo
0.8
|
#include <class.h>
Public Types | |
| typedef cxx0x::shared_ptr< Part > | Ptr |
| typedef cxx0x::function< Ptr(const P &p) > | FactoryMethod |
Public Member Functions | |
| Ptr | NewInstance (const P &p) const |
Static Public Member Functions | |
| static Class | ForName (const std::string &name) |
Friends | |
| template<class T , class T1 , class T2 > | |
| class | Registration |
This is the description of a class derived from wallaroo::Part having a constructor that takes one parameter of type P. The class provides a method to get an instance of the described class. It also provides a static registry containing all the instances of this class, and methods to register and retrieve them.
| typedef cxx0x::function< Ptr( const P& p ) > wallaroo::Class< P, void >::FactoryMethod |
| typedef cxx0x::shared_ptr< Part > wallaroo::Class< P, void >::Ptr |
|
inlinestatic |
Return the Class< P, void > registered with the name name.
|
inline |
Create an instance of the class described by this object.
| p | The parameter to pass to the constructor |
1.8.8