DictionaryElement Class Reference

This class should never be used directly, it is being used by the Dictionary class. More...

#include <dictionary.h>

Inheritance diagram for DictionaryElement:
zmm::Object

Public Member Functions

 DictionaryElement (zmm::String key, zmm::String value)
 Constructor, stores the key and the value.
void setKey (zmm::String key)
 Changes the name of the key.
void setValue (zmm::String value)
 Changes the key value.
zmm::String getKey ()
 Returns the key for this DictionaryElement.
zmm::String 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::String value
mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

This class should never be used directly, it is being used by the Dictionary class.

Definition at line 39 of file dictionary.h.


Constructor & Destructor Documentation

DictionaryElement::DictionaryElement ( zmm::String  key,
zmm::String  value 
)

Constructor, stores the key and the value.

Definition at line 43 of file dictionary.cc.


Member Function Documentation

String DictionaryElement::getKey (  ) 

Returns the key for this DictionaryElement.

Definition at line 59 of file dictionary.cc.

References key.

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

References zmm::Object::_ref_count, and atomic_get().

String DictionaryElement::getValue (  ) 

Returns the value for this DictionaryElement.

Definition at line 64 of file dictionary.cc.

References 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]
void DictionaryElement::setKey ( zmm::String  key  ) 

Changes the name of the key.

Parameters:
key new key name.

Definition at line 49 of file dictionary.cc.

void DictionaryElement::setValue ( zmm::String  value  ) 

Changes the key value.

Parameters:
value new value.

Definition at line 54 of file dictionary.cc.


Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]

Definition at line 60 of file dictionary.h.

Referenced by getKey().

pthread_mutex_t zmm::Object::mutex [protected, inherited]

Definition at line 61 of file dictionary.h.

Referenced by getValue().


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

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