Lumiera  0.pre.03
»edit your freedom«
Fab< SIG, ID > Struct Template Reference

#include "lib/multifact.hpp"

Description

template<typename SIG, typename ID>
struct lib::factory::Fab< SIG, ID >

Table of registered production functions for MultiFact.

Each stored function can be accessed by ID and is able to fabricate a specific object, which is assignable to the nominal target type in the MultiFact definition.

Definition at line 166 of file multifact.hpp.

Public Types

typedef std::function< SIG > FactoryFunc
 

Public Member Functions

bool contains (ID id) const
 
void defineProduction (ID const &id, FactoryFunc fun)
 
bool empty () const
 
FactoryFunc & select (ID const &id)
 

Private Attributes

std::map< ID, FactoryFunc > producerTable_
 
+ Inheritance diagram for Fab< SIG, ID >:
+ Collaboration diagram for Fab< SIG, ID >:

The documentation for this struct was generated from the following file: