|
bool | registerFunction (const IdentifierType &id, ProductCall call) |
| Register the function. More...
|
|
bool | unregisterFunction (const IdentifierType &id) |
| Unregister the function. More...
|
|
AbstractProduct | callFunction (const IdentifierType &id) |
| Call the function. More...
|
|
AbstractProduct | callFunction (const IdentifierType &id, Parm1 p1) |
| Call the function. More...
|
|
AbstractProduct | callFunction (const IdentifierType &id, Parm1 p1, Parm2 p2) |
| Call the function. More...
|
|
AbstractProduct | callFunction (const IdentifierType &id, Parm1 p1, Parm2 p2, Parm3 p3) |
| Call the function. More...
|
|
AbstractProduct | callFunction (const IdentifierType &id, Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4) |
| Call the function. More...
|
|
AbstractProduct | callFunction (const IdentifierType &id, Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4, Parm5 p5) |
| Call the function. More...
|
|
AbstractProduct | callFunction (const IdentifierType &id, Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4, Parm5 p5, Parm6 p6) |
| Call the function. More...
|
|
template<typename Disambiguator, class AbstractProduct, typename IdentifierType, class TList = NullType, typename ProductCall = AbstractProduct (*)(), template< typename, class > class FunctionMapErrorPolicy = DefaultFunctionMapError>
class Chroma::FunctionMap< Disambiguator, AbstractProduct, IdentifierType, TList, ProductCall, FunctionMapErrorPolicy >
Object factory class.
Supports abstract creation of objects
Definition at line 88 of file funcmap.h.
template<typename Disambiguator , class AbstractProduct , typename IdentifierType , class TList = NullType, typename ProductCall = AbstractProduct (*)(), template< typename, class > class FunctionMapErrorPolicy = DefaultFunctionMapError>
typedef std::map<IdentifierType, ProductCall> Chroma::FunctionMap< Disambiguator, AbstractProduct, IdentifierType, TList, ProductCall, FunctionMapErrorPolicy >::IdToProductMap |
|
private |
template<typename Disambiguator , class AbstractProduct , typename IdentifierType , class TList = NullType, typename ProductCall = AbstractProduct (*)(), template< typename, class > class FunctionMapErrorPolicy = DefaultFunctionMapError>
typedef TList Chroma::FunctionMap< Disambiguator, AbstractProduct, IdentifierType, TList, ProductCall, FunctionMapErrorPolicy >::ParmList |
template<typename Disambiguator , class AbstractProduct , typename IdentifierType , class TList = NullType, typename ProductCall = AbstractProduct (*)(), template< typename, class > class FunctionMapErrorPolicy = DefaultFunctionMapError>
AbstractProduct Chroma::FunctionMap< Disambiguator, AbstractProduct, IdentifierType, TList, ProductCall, FunctionMapErrorPolicy >::callFunction |
( |
const IdentifierType & |
id | ) |
|
|
inline |
Call the function.
- Parameters
-
- Returns
- returns result of the function call
Definition at line 128 of file funcmap.h.
References Chroma::i, and j.
template<typename Disambiguator , class AbstractProduct , typename IdentifierType , class TList = NullType, typename ProductCall = AbstractProduct (*)(), template< typename, class > class FunctionMapErrorPolicy = DefaultFunctionMapError>
AbstractProduct Chroma::FunctionMap< Disambiguator, AbstractProduct, IdentifierType, TList, ProductCall, FunctionMapErrorPolicy >::callFunction |
( |
const IdentifierType & |
id, |
|
|
Parm1 |
p1 |
|
) |
| |
|
inline |
Call the function.
- Parameters
-
id | function id |
p1 | first parameter arg to function |
- Returns
- returns result of the function call
Definition at line 154 of file funcmap.h.
References Chroma::i, and j.
template<typename Disambiguator , class AbstractProduct , typename IdentifierType , class TList = NullType, typename ProductCall = AbstractProduct (*)(), template< typename, class > class FunctionMapErrorPolicy = DefaultFunctionMapError>
AbstractProduct Chroma::FunctionMap< Disambiguator, AbstractProduct, IdentifierType, TList, ProductCall, FunctionMapErrorPolicy >::callFunction |
( |
const IdentifierType & |
id, |
|
|
Parm1 |
p1, |
|
|
Parm2 |
p2 |
|
) |
| |
|
inline |
Call the function.
- Parameters
-
id | function id |
p1 | 1st parameter arg to function |
p2 | 2nd parameter arg to function |
- Returns
- returns result of the function call
Definition at line 181 of file funcmap.h.
References Chroma::i, and j.
template<typename Disambiguator , class AbstractProduct , typename IdentifierType , class TList = NullType, typename ProductCall = AbstractProduct (*)(), template< typename, class > class FunctionMapErrorPolicy = DefaultFunctionMapError>
AbstractProduct Chroma::FunctionMap< Disambiguator, AbstractProduct, IdentifierType, TList, ProductCall, FunctionMapErrorPolicy >::callFunction |
( |
const IdentifierType & |
id, |
|
|
Parm1 |
p1, |
|
|
Parm2 |
p2, |
|
|
Parm3 |
p3 |
|
) |
| |
|
inline |
Call the function.
- Parameters
-
id | function id |
p1 | 1st parameter arg to function |
p2 | 2nd parameter arg to function |
p3 | 3rd parameter arg to function |
- Returns
- returns result of the function call
Definition at line 209 of file funcmap.h.
References Chroma::i, and j.
template<typename Disambiguator , class AbstractProduct , typename IdentifierType , class TList = NullType, typename ProductCall = AbstractProduct (*)(), template< typename, class > class FunctionMapErrorPolicy = DefaultFunctionMapError>
AbstractProduct Chroma::FunctionMap< Disambiguator, AbstractProduct, IdentifierType, TList, ProductCall, FunctionMapErrorPolicy >::callFunction |
( |
const IdentifierType & |
id, |
|
|
Parm1 |
p1, |
|
|
Parm2 |
p2, |
|
|
Parm3 |
p3, |
|
|
Parm4 |
p4 |
|
) |
| |
|
inline |
Call the function.
- Parameters
-
id | function id |
p1 | 1st parameter arg to function |
p2 | 2nd parameter arg to function |
p3 | 3rd parameter arg to function |
p4 | 4th parameter arg to function |
- Returns
- returns result of the function call
Definition at line 238 of file funcmap.h.
References Chroma::i, and j.
template<typename Disambiguator , class AbstractProduct , typename IdentifierType , class TList = NullType, typename ProductCall = AbstractProduct (*)(), template< typename, class > class FunctionMapErrorPolicy = DefaultFunctionMapError>
AbstractProduct Chroma::FunctionMap< Disambiguator, AbstractProduct, IdentifierType, TList, ProductCall, FunctionMapErrorPolicy >::callFunction |
( |
const IdentifierType & |
id, |
|
|
Parm1 |
p1, |
|
|
Parm2 |
p2, |
|
|
Parm3 |
p3, |
|
|
Parm4 |
p4, |
|
|
Parm5 |
p5 |
|
) |
| |
|
inline |
Call the function.
- Parameters
-
id | function id |
p1 | 1st parameter arg to function |
p2 | 2nd parameter arg to function |
p3 | 3rd parameter arg to function |
p4 | 4th parameter arg to function |
p5 | 5th parameter arg to function |
- Returns
- returns result of the function call
Definition at line 269 of file funcmap.h.
References Chroma::i, and j.
template<typename Disambiguator , class AbstractProduct , typename IdentifierType , class TList = NullType, typename ProductCall = AbstractProduct (*)(), template< typename, class > class FunctionMapErrorPolicy = DefaultFunctionMapError>
AbstractProduct Chroma::FunctionMap< Disambiguator, AbstractProduct, IdentifierType, TList, ProductCall, FunctionMapErrorPolicy >::callFunction |
( |
const IdentifierType & |
id, |
|
|
Parm1 |
p1, |
|
|
Parm2 |
p2, |
|
|
Parm3 |
p3, |
|
|
Parm4 |
p4, |
|
|
Parm5 |
p5, |
|
|
Parm6 |
p6 |
|
) |
| |
|
inline |
Call the function.
- Parameters
-
id | function id |
p1 | 1st parameter arg to function |
p2 | 2nd parameter arg to function |
p3 | 3rd parameter arg to function |
p4 | 4th parameter arg to function |
p5 | 5th parameter arg to function |
p6 | 6th parameter arg to function |
- Returns
- returns result of the function call
Definition at line 301 of file funcmap.h.
References Chroma::i, and j.
template<typename Disambiguator , class AbstractProduct , typename IdentifierType , class TList = NullType, typename ProductCall = AbstractProduct (*)(), template< typename, class > class FunctionMapErrorPolicy = DefaultFunctionMapError>
bool Chroma::FunctionMap< Disambiguator, AbstractProduct, IdentifierType, TList, ProductCall, FunctionMapErrorPolicy >::registerFunction |
( |
const IdentifierType & |
id, |
|
|
ProductCall |
call |
|
) |
| |
|
inline |
Register the function.
- Parameters
-
id | function id |
call | the calling function |
- Returns
- returns true if registration successful
Definition at line 107 of file funcmap.h.
template<typename Disambiguator , class AbstractProduct , typename IdentifierType , class TList = NullType, typename ProductCall = AbstractProduct (*)(), template< typename, class > class FunctionMapErrorPolicy = DefaultFunctionMapError>
bool Chroma::FunctionMap< Disambiguator, AbstractProduct, IdentifierType, TList, ProductCall, FunctionMapErrorPolicy >::unregisterFunction |
( |
const IdentifierType & |
id | ) |
|
|
inline |
Unregister the function.
- Parameters
-
- Returns
- returns true if function was registered before
Definition at line 118 of file funcmap.h.
template<typename Disambiguator , class AbstractProduct , typename IdentifierType , class TList = NullType, typename ProductCall = AbstractProduct (*)(), template< typename, class > class FunctionMapErrorPolicy = DefaultFunctionMapError>