|
Jamoma API
0.6.0.a19
|
A type that represents the key as a C-String and the value as a pointer to the matching TTSymbol object. More...
#include <TTDictionary.h>
Collaboration diagram for TTDictionary:Public Member Functions | |
| TTDictionary (TTSymbol aDictionaryName, TTBoolean &aDictionaryWasCreated) | |
| Constructor. More... | |
| TTDictionary (const TTDictionary &aSourceDictionary) | |
| Copy Constructor. | |
| virtual | ~TTDictionary () |
| Destructor. | |
| TTSymbol | name () const |
| Return the name associated with the dictionary. More... | |
| TTErr | registerObserverForNotifications (const TTObjectBase &anObservingObject) |
| Register an observer. More... | |
| TTErr | unregisterObserverForNotifications (const TTObjectBase &anObservingObject) |
| Unregister an observer for notifications. More... | |
| TTErr | setSchema (const TTSymbol aSchemaName) |
| TODO: Add documentation schemaName TODO: Add documentation. More... | |
| const TTSymbol | getSchema () const |
| TODO: Add documentation. More... | |
| TTErr | setValue (const TTValue aNewValue) |
| TODO: Add documentation. More... | |
| template<class T > | |
| TTErr | getValue (T &aReturnedValue) const |
| Get the dictionary's primary value. More... | |
| TTErr | append (const TTSymbol aKey, const TTValue aValue) |
| Insert an item into the hash table. More... | |
| TTErr | lookup (const TTSymbol aKey, TTValue &aValue) const |
| Find the value for the given key. More... | |
| TTErr | remove (const TTSymbol aKey) |
| Remove an item from the hash table. More... | |
| TTErr | clear () |
| Remove all items from the hash table. More... | |
| TTErr | getKeys (TTValue &aSetOfKeys) |
| Get an array of all of the keys for the hash table. More... | |
| TTPtrSizedInt | size () |
| Return the number of keys in the hash table. More... | |
| TTBoolean | empty () |
| Return true if the hash has nothing stored in it. More... | |
A type that represents the key as a C-String and the value as a pointer to the matching TTSymbol object.
An iterator for the STL hash_map used by TTSymbolTable. Create and destroy Jamoma object instances.
Definition at line 47 of file TTDictionary.h.
Constructor.
| aDictionaryName | The symbolic name associated with this dictionary. If you pass an empty symbol then a random name with be generated and returned here. |
| aDictionaryWasCreated | Upon return this will be true if a new dictionary was created rather than an existing dictionary being referenced. |
Definition at line 62 of file TTDictionary.h.
Insert an item into the hash table.
| value | The value to instert. |
Definition at line 212 of file TTDictionary.h.
References TTDictionaryBase::append().
Here is the call graph for this function:
|
inline |
Remove all items from the hash table.
Definition at line 240 of file TTDictionary.h.
References TTDictionaryBase::clear().
Here is the call graph for this function:
|
inline |
Return true if the hash has nothing stored in it.
Definition at line 268 of file TTDictionary.h.
References TTDictionaryBase::isEmpty().
Here is the call graph for this function:Get an array of all of the keys for the hash table.
| hashKeys | Used to return an array of all of the keys for the hash table |
Definition at line 250 of file TTDictionary.h.
References TTDictionaryBase::getKeys().
Here is the call graph for this function:
|
inline |
TODO: Add documentation.
Definition at line 181 of file TTDictionary.h.
References TTDictionaryBase::getSchema().
Referenced by TTAdsr::dictionary().
Here is the call graph for this function:
|
inline |
Get the dictionary's primary value.
| name | The name of the attribute to get. |
| value | The returned value of the attribute. |
Definition at line 202 of file TTDictionary.h.
References TTDictionaryBase::getValue().
Referenced by TTAudioGraphSig::dictionary(), TTAdsr::dictionary(), and TTDictionaryBase::getValue().
Here is the call graph for this function:Find the value for the given key.
Definition at line 221 of file TTDictionary.h.
References TTDictionaryBase::lookup().
Here is the call graph for this function:
|
inline |
Return the name associated with the dictionary.
Definition at line 131 of file TTDictionary.h.
| TTErr TTDictionary::registerObserverForNotifications | ( | const TTObjectBase & | anObservingObject | ) |
Register an observer.
The observer will be monitoring this object.
| anObservingObject | Reference to the observing object. |
Definition at line 25 of file TTDictionary.cpp.
Remove an item from the hash table.
| key | The key of the item to remove. |
Definition at line 231 of file TTDictionary.h.
References TTDictionaryBase::remove().
Here is the call graph for this function:TODO: Add documentation schemaName TODO: Add documentation.
Definition at line 172 of file TTDictionary.h.
References TTDictionaryBase::setSchema().
Referenced by PackNew().
Here is the call graph for this function:TODO: Add documentation.
| newValue | TODO: Add documentation |
Definition at line 191 of file TTDictionary.h.
References TTDictionaryBase::setValue().
Here is the call graph for this function:
|
inline |
Return the number of keys in the hash table.
Definition at line 259 of file TTDictionary.h.
References TTDictionaryBase::getSize().
Here is the call graph for this function:| TTErr TTDictionary::unregisterObserverForNotifications | ( | const TTObjectBase & | anObservingObject | ) |
Unregister an observer for notifications.
The observer wiln no longer be monitoring.
| anObservingObject | Reference to the observing object. |
Definition at line 36 of file TTDictionary.cpp.