Claw  1.7.3
Classes | Namespaces
factory.hpp File Reference

The design pattern of the factory. More...

#include <claw/exception.hpp>
#include <map>
#include <claw/impl/factory.tpp>

Go to the source code of this file.

Classes

class  claw::pattern::bad_type_identifier
 Exception thrown when an incorrect identifier is given to a type. More...
class  claw::pattern::factory< BaseClass, IdentifierType >
 The design pattern of the factory allow to dynamically instanciate classes of various types given an identifier of this type. More...
class  claw::pattern::factory< BaseClass, IdentifierType >::class_creator_base
 A class creator is an object that allocate a given type. This is the base class for all class creators.
class  claw::pattern::factory< BaseClass, IdentifierType >::class_creator< Derived >
 A class creator is an object that allocate a given type.

Namespaces

namespace  claw
 This is the main namespace.
namespace  claw::pattern
 Here are the design patterns.

Detailed Description

The design pattern of the factory.

Author
Julien Jorge

Definition in file factory.hpp.