lumiera::factory::Factory< T, WR > Class Template Reference
Basic
Factory Template, for definig flexible
Factory classes.
More...
#include <factory.hpp>
List of all members.
|
Public Member Functions |
| WR::PType | operator() () |
| | Object creating facility.
|
Detailed Description
template<class T, class WR = Wrapper<T>>
class lumiera::factory::Factory< T, WR >
These encapsulate the logic for creating of new objects, maybe delegating the memory allocation to the backend layer. Usually, the clients get just a smart-pointer or similar handle to the created object, which will manage the ownership.
The provided default implementation uses just std::auto_ptr.
Definition at line 69 of file factory.hpp.
Member Function Documentation
template<class T, class WR = Wrapper<T>>
Intended to be over/written/ with a variant taking the appropriate number of parameters and maybe using some special custom allocator. Note: non-virtual.
Reimplemented in lumiera::factory::PImplPtr< T, TImpl >.
Definition at line 78 of file factory.hpp.
00078 { return wrap (new T ); }
The documentation for this class was generated from the following file: