54 auto pos =
tmp.begin();
55 while (pos !=
tmp.end()) {
106 template <
typename T>
112 template <
typename T>
120 template <
typename T>
The Dict class can be used to store objects of arbitrary type keyed by strings.
void reset()
Clears all keys (and values) from the dictionary.
STR_VECT keys() const
Returns the set of keys in the dictionary.
bool hasVal(const std::string &what) const
Returns whether or not the dictionary contains a particular key.
bool getValIfPresent(const std::string &what, T &res) const
Potentially gets the value associated with a particular key returns true on success/false on failure.
void update(const Dict &other, bool preserveExisting=false)
void getVal(const std::string &what, T &res) const
Gets the value associated with a particular key.
void clearVal(const std::string &what)
Clears the value associated with a particular key, removing the key from the dictionary.
void setVal(const std::string &what, T &val)
Sets the value associated with a key.
bool getPropIfPresent(const std::string &key, T &res) const
void clearProp(const std::string &key) const
clears the value of a property
const Dict & getDict() const
gets the underlying Dictionary
RDProps & operator=(RDProps &&rhs) noexcept=default
RDProps & operator=(const RDProps &rhs)
void getProp(const std::string &key, T &res) const
allows retrieval of a particular property value
T getProp(const std::string &key) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
void updateProps(const RDProps &source, bool preserveExisting=false)
update the properties from another
bool hasProp(const std::string &key) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
void setProp(const std::string &key, T val, bool computed=false) const
sets a property value
RDProps(const RDProps &rhs)
STR_VECT getPropList(bool includePrivate=true, bool includeComputed=true) const
returns a list with the names of our properties
void clearComputedProps() const
clears all of our computed properties
RDProps(RDProps &&o) noexcept=default
RDKIT_RDGENERAL_EXPORT const std::string computedPropName
std::vector< std::string > STR_VECT
bool rdvalue_is(const RDValue_cast_t)