Public Member Functions

claw::pattern::factory< BaseClass, IdentifierType >::class_creator< Derived > Class Template Reference

A class creator is an object that allocate a given type. More...

Inheritance diagram for claw::pattern::factory< BaseClass, IdentifierType >::class_creator< Derived >:
claw::pattern::factory< BaseClass, IdentifierType >::class_creator_base

List of all members.

Public Member Functions

virtual Derived * create () const
 Create an instance of the derived type..

Detailed Description

template<typename BaseClass, typename IdentifierType>
template<typename Derived>
class claw::pattern::factory< BaseClass, IdentifierType >::class_creator< Derived >

A class creator is an object that allocate a given type.

Template parameters:

Type requirements:

Definition at line 96 of file factory.hpp.


Member Function Documentation

template<typename BaseClass , typename IdentifierType >
template<typename Derived >
Derived * claw::pattern::factory< BaseClass, IdentifierType >::class_creator< Derived >::create (  ) const [virtual]

Create an instance of the derived type..

Implements claw::pattern::factory< BaseClass, IdentifierType >::class_creator_base.

Definition at line 52 of file factory.tpp.

{
  return new Derived;
} // factory::class_creator::create()

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