Simple value<>name mapping supporting aliases.
More...
#include <zypp/base/NamedValue.h>
template<
class Tp, const
bool _tWithAlias = true>
class zypp::NamedValue< Tp, _tWithAlias >
Simple value<>name mapping supporting aliases.
};
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Definition at line 41 of file NamedValue.h.
◆ NameMap
template<
class Tp , const
bool _tWithAlias = true>
◆ ValueMap
template<
class Tp , const
bool _tWithAlias = true>
◆ empty()
template<
class Tp , const
bool _tWithAlias = true>
Whether not initialized (no (name,value) pair remembered)
Definition at line 48 of file NamedValue.h.
◆ haveValue()
template<
class Tp , const
bool _tWithAlias = true>
Whether there is a value
mapped for name_r.
Definition at line 56 of file NamedValue.h.
◆ getValue() [1/2]
template<
class Tp , const
bool _tWithAlias = true>
Get value mapped for name or alias.
- Returns
true
if name or alias was found.
Definition at line 65 of file NamedValue.h.
◆ getValue() [2/2]
template<
class Tp , const
bool _tWithAlias = true>
◆ haveName()
template<
class Tp , const
bool _tWithAlias = true>
Whether there is a name
mapped for value_r.
Definition at line 83 of file NamedValue.h.
◆ getName() [1/2]
template<
class Tp , const
bool _tWithAlias = true>
Get name of value.
- Returns
true
if name or alias was found.
Definition at line 92 of file NamedValue.h.
◆ getName() [2/2]
template<
class Tp , const
bool _tWithAlias = true>
◆ operator()()
template<
class Tp , const
bool _tWithAlias = true>
◆ insert()
template<
class Tp , const
bool _tWithAlias = true>
Remember name (1st call) or alias (subsequent calls).
- Returns
- \C true if this is the 1st call for value_r.
- Exceptions
-
std::logic_error | if name_r is already used as name or alias. |
std::logic_error | if _tWithAlias is false and a name for value_r is already defined. |
Definition at line 132 of file NamedValue.h.
◆ _nameMap
template<
class Tp , const
bool _tWithAlias = true>
◆ _valueMap
template<
class Tp , const
bool _tWithAlias = true>
The documentation for this class was generated from the following file: