#include <object_dictionary.h>
Public Member Functions | |
| ObjectDictionaryElement (zmm::String key, zmm::Ref< T > value) | |
| Constructor, stores the key and the value. | |
| void | setKey (zmm::String key) |
| Changes the name of the key. | |
| void | setValue (zmm::Ref< T > value) |
| Changes the key value. | |
| zmm::String | getKey () |
| Returns the key for this DictionaryElement. | |
| zmm::Ref< T > | getValue () |
| Returns the value for this DictionaryElement. | |
| void | retain () |
| void | release () |
| int | getRefCount () |
Static Public Member Functions | |
| static void * | operator new (size_t size) |
| static void | operator delete (void *ptr) |
Protected Attributes | |
| zmm::String | key |
| zmm::Ref< T > | value |
| mt_atomic_t | _ref_count |
| pthread_mutex_t | mutex |
Definition at line 39 of file object_dictionary.h.
| ObjectDictionaryElement< T >::ObjectDictionaryElement | ( | zmm::String | key, | |
| zmm::Ref< T > | value | |||
| ) | [inline] |
Constructor, stores the key and the value.
Definition at line 43 of file object_dictionary.h.
| zmm::String ObjectDictionaryElement< T >::getKey | ( | ) | [inline] |
Returns the key for this DictionaryElement.
Definition at line 58 of file object_dictionary.h.
References ObjectDictionaryElement< T >::key.
| int Object::getRefCount | ( | ) | [inherited] |
Definition at line 78 of file object.cc.
References zmm::Object::_ref_count, and atomic_get().
| zmm::Ref<T> ObjectDictionaryElement< T >::getValue | ( | ) | [inline] |
Returns the value for this DictionaryElement.
Definition at line 61 of file object_dictionary.h.
References ObjectDictionaryElement< T >::value.
| void Object::operator delete | ( | void * | ptr | ) | [static, inherited] |
| void * Object::operator new | ( | size_t | size | ) | [static, inherited] |
| void Object::release | ( | ) | [inherited] |
Definition at line 66 of file object.cc.
References zmm::Object::_ref_count, atomic_dec(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::clear(), zmm::String::operator=(), DSOHash< zmm::Array< CacheObject > >::releaseData(), DSBHash< VT >::releaseData(), DSOHash< zmm::Array< CacheObject > >::remove(), zmm::ArrayBase::remove(), zmm::ArrayBase::removeUnordered(), zmm::ArrayBase::set(), zmm::ArrayBase::~ArrayBase(), DSOHash< zmm::Array< CacheObject > >::~DSOHash(), zmm::ObjectQueue< AutoscanDirectory >::~ObjectQueue(), zmm::ObjectStack< Element >::~ObjectStack(), and zmm::String::~String().
| void Object::retain | ( | ) | [inherited] |
Definition at line 58 of file object.cc.
References zmm::Object::_ref_count, atomic_inc(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::append(), zmm::ObjectQueue< AutoscanDirectory >::enqueue(), zmm::ArrayBase::insert(), zmm::String::operator=(), zmm::ObjectStack< Element >::push(), DSOHash< zmm::Array< CacheObject > >::put(), DSBHash< VT >::put(), zmm::ArrayBase::set(), and zmm::String::String().
| void ObjectDictionaryElement< T >::setKey | ( | zmm::String | key | ) | [inline] |
Changes the name of the key.
| key | new key name. |
Definition at line 51 of file object_dictionary.h.
| void ObjectDictionaryElement< T >::setValue | ( | zmm::Ref< T > | value | ) | [inline] |
Changes the key value.
| value | new value. |
Definition at line 55 of file object_dictionary.h.
mt_atomic_t zmm::Object::_ref_count [protected, inherited] |
Definition at line 54 of file object.h.
Referenced by zmm::Object::getRefCount(), zmm::Object::Object(), zmm::Object::release(), and zmm::Object::retain().
zmm::String ObjectDictionaryElement< T >::key [protected] |
Definition at line 64 of file object_dictionary.h.
Referenced by ObjectDictionaryElement< T >::getKey().
pthread_mutex_t zmm::Object::mutex [protected, inherited] |
Reimplemented in AutoscanList, AutoscanInotify, CachedURL, Dictionary_r, DVDNavReader, IOHandlerBufferHelper, ReentrantArray< T >, SingletonManager, Singleton< T >, StorageCache, MutexAutolock, Cond, ThreadExecutor, Singleton< UpdateManager >, Singleton< Timer >, Singleton< ContentDirectoryService >, Singleton< ConfigManager >, Singleton< Server >, Singleton< Runtime >, Singleton< ContentManager >, Singleton< ConnectionManagerService >, Singleton< PlayHook >, Singleton< Storage >, and Singleton< SessionManager >.
Definition at line 56 of file object.h.
Referenced by zmm::Object::Object(), zmm::Object::release(), zmm::Object::retain(), and zmm::Object::~Object().
zmm::Ref<T> ObjectDictionaryElement< T >::value [protected] |
Definition at line 65 of file object_dictionary.h.
Referenced by ObjectDictionaryElement< T >::getValue().
1.6.1