Avogadro::Core::VariantMap#
-
class VariantMap#
The VariantMap class provides a map between string keys and variant values.
Public Types
Public Functions
-
VariantMap()#
Creates a new variant map object.
-
~VariantMap()#
Destroys the variant map.
-
size_t size() const#
Returns the size of the variant map.
-
std::vector<std::string> names() const#
Returns the names of the entries in the map.
-
Variant value(const std::string &name) const#
Returns the value for
name
. Ifname
is not found a null variant is returned.
-
bool hasValue(const std::string &name) const#
Returns true if the key exists in the map.
-
inline void clear()#
Clears the map.
-
const_iterator begin() const#
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
-
const_iterator constBegin() const#
Return a const_iterator pointing to the beginning of the map.
-
const_iterator end() const#
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
-
const_iterator constEnd() const#
Return a const_iterator pointing to the end of the map.
-
VariantMap()#