public |
Inheritance Graph
graph BT
ExceptionFallback
click ExceptionFallback "classUtil_1_1FallbackPolicies_1_1ExceptionFallback"
Description
Possible fallback policy for a factory.
In case of an unknown type, an exception is thrown.
See also: Factory or WrapperFactory for description of template parameters
Author: Benjamin Eikel
Date: 2012-01-31
See also: Section 8.6 in Andrei Alexandrescu: Modern C++ Design. Addison-Wesley, 2001.
Classes
class | Util::FallbackPolicies::ExceptionFallback::Exception |
Public Types
typedef std::function< ObjectType(const IdentifierType &)> | FactoryCall |
Public Functions
ObjectType | onUnknownType( FactoryCall void, const IdentifierType & id) |
Documentation
typedef
Util::FallbackPolicies::ExceptionFallback::FactoryCall
public |
typedef std::function< ObjectType(const IdentifierType &)> FactoryCall |
Defined in Util/Factory/FallbackPolicies.h:53
function
Util::FallbackPolicies::ExceptionFallback::onUnknownType
public | inline |
ObjectType onUnknownType( | FactoryCall | void, |
const IdentifierType & | id | |
) |
Defined in Util/Factory/FallbackPolicies.h:55