Classes | |
| class | Impl |
Public Member Functions | |
| StringDictionary () | |
| Implementation. | |
| StringDictionary (const StringDictionary &rhs) | |
| Constructs a dictionary. | |
| ~StringDictionary () | |
| Releases resources. | |
| void | add (const String &key, const String &value) |
| Adds the (key, value) pair to the dictionary. | |
| String | remove (const String &key) |
| Removes the value associated with key. | |
| String | find (const String &key, bool throw_exception=false) const |
| Returns the value associated with key. | |
| void | fill (StringList ¶m_names, StringList &values) const |
| Fills keys and values with the corresponding values from the dictionary. | |
| StringDictionary () | |
| Implementation. | |
| StringDictionary (const StringDictionary &rhs) | |
| Constructs a dictionary. | |
| ~StringDictionary () | |
| Releases resources. | |
| void | add (const String &key, const String &value) |
| Adds the (key,value) pair to the dictionary. | |
| String | remove (const String &key) |
| Removes the value associated with key. | |
| String | find (const String &key, bool throw_exception=false) const |
| Returns the value associated with key. | |
| void | fill (StringList ¶m_names, StringList &values) const |
| Fills keys and values with the corresponding values from the dictionary. | |
Definition at line 35 of file arcane/src/arcane/utils/StringDictionary.h.
| Arcane::StringDictionary::StringDictionary | ( | ) |
Implementation.
Constructs a dictionary
Definition at line 63 of file StringDictionary.cc.
Referenced by StringDictionary().
| Arcane::StringDictionary::StringDictionary | ( | const StringDictionary & | rhs | ) |
Constructs a dictionary.
Definition at line 72 of file StringDictionary.cc.
References StringDictionary().
| Arcane::StringDictionary::~StringDictionary | ( | ) |
Releases resources.
Definition at line 81 of file StringDictionary.cc.
| Arcane::StringDictionary::StringDictionary | ( | ) |
Implementation.
Constructs a dictionary
Adds the (key, value) pair to the dictionary.
If a value already exists for key, it is replaced by the new one.
Definition at line 90 of file StringDictionary.cc.
Adds the (key,value) pair to the dictionary.
If a value already exists for key, it is replaced by the new one.
| void Arcane::StringDictionary::fill | ( | StringList & | param_names, |
| StringList & | values ) const |
Fills keys and values with the corresponding values from the dictionary.
Definition at line 129 of file StringDictionary.cc.
References Arcane::CollectionBase::clear().
Returns the value associated with key.
If no value is associated with key, the null string is returned. It is not possible to distinguish between a value corresponding to the null string and an unfound value unless throw_exception is true, in which case an exception is thrown if no value corresponding to key exists.
Definition at line 114 of file StringDictionary.cc.
Returns the value associated with key.
If no value is associated with key, the null string is returned. It is not possible to distinguish between a value corresponding to the null string and a not found value unless throw_exception is true, in which case an exception is thrown if there is no value corresponding to key.
Removes the value associated with key.
If no value was associated with key, nothing happens.
Definition at line 99 of file StringDictionary.cc.
Removes the value associated with key.
If no value was associated with key, nothing happens.