ObjectDictionaryElement< T > Class Template Reference

#include <object_dictionary.h>

Inheritance diagram for ObjectDictionaryElement< T >:
zmm::Object

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

Detailed Description

template<class T>
class ObjectDictionaryElement< T >

Definition at line 39 of file object_dictionary.h.


Constructor & Destructor Documentation

template<class T >
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.


Member Function Documentation

template<class T >
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().

template<class T >
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]

Definition at line 87 of file object.cc.

References FREE.

void * Object::operator new ( size_t  size  )  [static, inherited]

Definition at line 83 of file object.cc.

References MALLOC.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]
template<class T >
void ObjectDictionaryElement< T >::setKey ( zmm::String  key  )  [inline]

Changes the name of the key.

Parameters:
key new key name.

Definition at line 51 of file object_dictionary.h.

template<class T >
void ObjectDictionaryElement< T >::setValue ( zmm::Ref< T >  value  )  [inline]

Changes the key value.

Parameters:
value new value.

Definition at line 55 of file object_dictionary.h.


Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
template<class T >
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]
template<class T >
zmm::Ref<T> ObjectDictionaryElement< T >::value [protected]

Definition at line 65 of file object_dictionary.h.

Referenced by ObjectDictionaryElement< T >::getValue().


The documentation for this class was generated from the following file:

Generated on Fri Mar 26 20:16:57 2010 for MediaTomb by  doxygen 1.6.1