#include <factory.hpp>
Public Types | |
typedef AliasedType | key_type |
typedef AliasedType | value_type |
typedef std::map < key_type, value_type > | alias_map_type |
A map type for storing lookup key aliases. | |
typedef alias_map_type::iterator | iterator |
typedef alias_map_type::const_iterator | const_iterator |
Public Member Functions | |
void | alias (const key_type &alias, const value_type &isthesameas) |
Aliases 'alias' as an equivalent of 'isthesameas'. | |
alias_map_type & | aliases () |
Returns the map of aliases. | |
const alias_map_type & | aliases () const |
Const overload. | |
iterator | begin () |
Begin iterator for aliases(). | |
const_iterator | begin () const |
Begin const_iterator for aliases(). | |
iterator | end () |
End iterator for aliases(). | |
const_iterator | end () const |
End const_iterator for aliases(). | |
value_type | expand (const key_type &_alias) const |
Expands the given alias recursively. |
AliasedType requires:
Definition at line 122 of file factory.hpp.
typedef AliasedType s11n::fac::aliaser< AliasedType >::key_type |
Definition at line 125 of file factory.hpp.
typedef AliasedType s11n::fac::aliaser< AliasedType >::value_type |
Definition at line 126 of file factory.hpp.
typedef std::map<key_type,value_type> s11n::fac::aliaser< AliasedType >::alias_map_type |
typedef alias_map_type::iterator s11n::fac::aliaser< AliasedType >::iterator |
Definition at line 148 of file factory.hpp.
typedef alias_map_type::const_iterator s11n::fac::aliaser< AliasedType >::const_iterator |
Definition at line 149 of file factory.hpp.
void s11n::fac::aliaser< AliasedType >::alias | ( | const key_type & | alias, | |
const value_type & | isthesameas | |||
) | [inline] |
alias_map_type& s11n::fac::aliaser< AliasedType >::aliases | ( | ) | [inline] |
const alias_map_type& s11n::fac::aliaser< AliasedType >::aliases | ( | ) | const [inline] |
iterator s11n::fac::aliaser< AliasedType >::begin | ( | ) | [inline] |
const_iterator s11n::fac::aliaser< AliasedType >::begin | ( | ) | const [inline] |
iterator s11n::fac::aliaser< AliasedType >::end | ( | ) | [inline] |
const_iterator s11n::fac::aliaser< AliasedType >::end | ( | ) | const [inline] |
value_type s11n::fac::aliaser< AliasedType >::expand | ( | const key_type & | _alias | ) | const [inline] |
Expands the given alias recursively.
If a circular alias is detected, the last expansion is returned (i.e., same as _alias). If no expansion is found then _alias is returned.
Definition at line 167 of file factory.hpp.