ValueArrayDictionary represents an associative array mapping from a string to an AbstractValueArray.
More...
ValueArrayDictionary represents an associative array mapping from a string to an AbstractValueArray.
◆ AbstractValue
◆ getKeys()
std::vector<std::string> OpenSim::ValueArrayDictionary::getKeys |
( |
| ) |
const |
|
inline |
◆ getKeyValueBegin()
Dictionary::const_iterator OpenSim::ValueArrayDictionary::getKeyValueBegin |
( |
| ) |
const |
|
inline |
Get begin iterator to the associative array.
◆ getKeyValueEnd()
Dictionary::const_iterator OpenSim::ValueArrayDictionary::getKeyValueEnd |
( |
| ) |
const |
|
inline |
Get begin iterator to the associative array.
◆ getValueArrayForKey()
const AbstractValueArray& OpenSim::ValueArrayDictionary::getValueArrayForKey |
( |
const std::string & |
key | ) |
const |
|
inline |
◆ getValueAsString()
std::string OpenSim::ValueArrayDictionary::getValueAsString |
( |
const std::string & |
key | ) |
const |
|
inline |
Get value corresponding to the given key as string.
- Exceptions
-
References hasKey().
◆ getValueForKey()
const AbstractValue& OpenSim::ValueArrayDictionary::getValueForKey |
( |
const std::string & |
key | ) |
const |
|
inline |
◆ hasKey()
bool OpenSim::ValueArrayDictionary::hasKey |
( |
const std::string & |
key | ) |
const |
|
inline |
◆ removeValueArrayForKey()
void OpenSim::ValueArrayDictionary::removeValueArrayForKey |
( |
const std::string & |
key | ) |
|
|
inline |
Remove a key and its associated array.
◆ removeValueForKey()
void OpenSim::ValueArrayDictionary::removeValueForKey |
( |
const std::string & |
key | ) |
|
|
inline |
Remove a key and its associated array.
◆ setValueArrayForKey()
bool OpenSim::ValueArrayDictionary::setValueArrayForKey |
( |
const std::string & |
key, |
|
|
const AbstractValueArray & |
abstractValueArray |
|
) |
| |
|
inline |
Set the array corresponding to a given key.
Value array is set only if the key does not already exist.
- Return values
-
true | If the value was set for the given key. |
false | If the value was not set because key already present. |
References OpenSim::AbstractValueArray::clone().
◆ setValueForKey()
template<typename ValueType >
bool OpenSim::ValueArrayDictionary::setValueForKey |
( |
const std::string & |
key, |
|
|
const ValueType & |
value |
|
) |
| |
|
inline |
◆ updValueArrayForKey()
AbstractValueArray& OpenSim::ValueArrayDictionary::updValueArrayForKey |
( |
const std::string & |
key | ) |
|
|
inline |
Get a writable reference to the array corresponding to a given key.
- Exceptions
-
References hasKey().
The documentation for this class was generated from the following file:
- OpenSim/Common/ValueArrayDictionary.h