Matcher Class Reference

#include <rexp.h>

Inheritance diagram for Matcher:
zmm::Object

Public Member Functions

virtual ~Matcher ()
zmm::String group (int i)
bool next ()
bool matches ()
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

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

Protected Member Functions

 Matcher (zmm::Ref< RExp > rexp, zmm::String text, int nmatch)

Protected Attributes

zmm::Ref< RExprexp
zmm::String text
char * ptr
int nmatch
regmatch_t * pmatch
mt_atomic_t _ref_count
pthread_mutex_t mutex

Friends

class RExp

Detailed Description

Definition at line 63 of file rexp.h.


Constructor & Destructor Documentation

Matcher::~Matcher (  )  [virtual]

Definition at line 123 of file rexp.cc.

References FREE, and pmatch.

Matcher::Matcher ( zmm::Ref< RExp rexp,
zmm::String  text,
int  nmatch 
) [protected]

Definition at line 112 of file rexp.cc.

References MALLOC, NULL, pmatch, and ptr.


Member Function Documentation

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

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

String Matcher::group ( int  i  ) 

Definition at line 128 of file rexp.cc.

References nil, pmatch, and ptr.

bool Matcher::matches (  ) 
bool Matcher::next (  ) 

Definition at line 136 of file rexp.cc.

References _Exception, zmm::String::c_str(), error_string(), nmatch, NULL, pmatch, ptr, rexp, and text.

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]

Friends And Related Function Documentation

friend class RExp [friend]

Definition at line 79 of file rexp.h.


Field Documentation

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

Definition at line 76 of file rexp.h.

Referenced by next().

regmatch_t* Matcher::pmatch [protected]

Definition at line 77 of file rexp.h.

Referenced by group(), Matcher(), next(), and ~Matcher().

char* Matcher::ptr [protected]

Definition at line 75 of file rexp.h.

Referenced by group(), Matcher(), and next().

zmm::Ref<RExp> Matcher::rexp [protected]

Definition at line 73 of file rexp.h.

Referenced by next().

Definition at line 74 of file rexp.h.

Referenced by next().


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

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