zmm::StringBase Class Reference

#include <strings.h>

Inheritance diagram for zmm::StringBase:

Public Member Functions

 StringBase (int capacity)
 StringBase (const char *str)
 StringBase (const char *str, int len)
bool startsWith (StringBase *other)
virtual ~StringBase ()
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static void * operator new (size_t size)
static void operator delete (void *ptr)

Data Fields

char * data
int len
bool store

Protected Member Functions

 StringBase ()

Protected Attributes

mt_atomic_t _ref_count
pthread_mutex_t mutex


class String

Detailed Description

Definition at line 60 of file strings.h.

Constructor & Destructor Documentation

StringBase::StringBase ( int  capacity  ) 

Definition at line 43 of file

References data, len, MALLOC, and store.

StringBase::StringBase ( const char *  str  ) 

Definition at line 49 of file

References data, len, MALLOC, and store.

StringBase::StringBase ( const char *  str,
int  len 

Definition at line 56 of file

References data, MALLOC, and store.

StringBase::~StringBase (  )  [virtual]

Definition at line 65 of file

References data, FREE, and store.

zmm::StringBase::StringBase (  )  [inline, protected]

Definition at line 73 of file strings.h.

Member Function Documentation

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file

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

void Object::operator delete ( void *  ptr  )  [static, inherited]

Definition at line 87 of file

References FREE.

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

Definition at line 83 of file

References MALLOC.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]
bool StringBase::startsWith ( StringBase other  ) 

Definition at line 71 of file

References data, and len.

Referenced by zmm::String::startsWith().

Friends And Related Function Documentation

friend class String [friend]

Definition at line 74 of file strings.h.

Field Documentation

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

Definition at line 65 of file strings.h.

Referenced by zmm::String::refer(), StringBase(), zmm::String::take(), and ~StringBase().

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

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