Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

cmt_regexp_node Class Reference

Inheritance diagram for cmt_regexp_node:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 cmt_regexp_node ()
virtual ~cmt_regexp_node ()
virtual const cmt_regexp::iterator match (const cmt_string &text, int pos) const
virtual bool is_char () const
virtual bool is_many_node () const
virtual void dump () const

Static Public Member Functions

cmt_regexp_nodenull ()
int node_count ()

Static Private Attributes

int _node_count = 0

Constructor & Destructor Documentation

cmt_regexp_node::cmt_regexp_node  ) 
 

Definition at line 273 of file cmt_regexp.cxx.

References _node_count.

00274 {
00275   _node_count++;
00276 }

cmt_regexp_node::~cmt_regexp_node  )  [virtual]
 

Definition at line 278 of file cmt_regexp.cxx.

References _node_count.

00279 {
00280   _node_count--;
00281 }


Member Function Documentation

void cmt_regexp_node::dump  )  const [virtual]
 

Reimplemented in cmt_char_node, cmt_string_node, cmt_char_list_node, cmt_not_char_list_node, cmt_any_node, cmt_zero_one, cmt_begin_node, cmt_end_node, cmt_regexp_node_set, cmt_and_node, cmt_or_node, cmt_many_node, cmt_zero_more, and cmt_one_more.

Definition at line 304 of file cmt_regexp.cxx.

Referenced by cmt_regexp_node_set::dump(), cmt_one_more::dump(), cmt_zero_more::dump(), cmt_many_node::dump(), cmt_zero_one::dump(), and cmt_regexp::set().

00305 {
00306 }

bool cmt_regexp_node::is_char  )  const [virtual]
 

Reimplemented in cmt_char_node.

Definition at line 294 of file cmt_regexp.cxx.

Referenced by cmt_and_node::reduce().

00295 {
00296   return (false);
00297 }

bool cmt_regexp_node::is_many_node  )  const [virtual]
 

Reimplemented in cmt_many_node.

Definition at line 299 of file cmt_regexp.cxx.

Referenced by cmt_and_node::reduce().

00300 {
00301   return (false);
00302 }

const cmt_regexp::iterator cmt_regexp_node::match const cmt_string text,
int  pos
const [virtual]
 

Reimplemented in cmt_char_node, cmt_string_node, cmt_char_list_node, cmt_not_char_list_node, cmt_any_node, cmt_zero_one, cmt_begin_node, cmt_end_node, cmt_and_node, cmt_or_node, cmt_zero_more, and cmt_one_more.

Definition at line 288 of file cmt_regexp.cxx.

References cmt_regexp::iterator::null().

Referenced by cmt_regexp::begin(), cmt_or_node::match(), cmt_and_node::match(), cmt_one_more::match(), cmt_zero_more::match(), and cmt_zero_one::match().

00290 {
00291   return (cmt_regexp::iterator::null());
00292 }

int cmt_regexp_node::node_count  )  [static]
 

Definition at line 283 of file cmt_regexp.cxx.

References _node_count.

00284 {
00285   return (_node_count);
00286 }

cmt_regexp_node & cmt_regexp_node::null  )  [static]
 

Definition at line 215 of file cmt_regexp.cxx.

Referenced by cmt_regexp_node_set::pop(), and cmt_regexp_node_set::top().

00216 {
00217   static cmt_regexp_node null_instance;
00218   
00219   return (null_instance);
00220 }


Member Data Documentation

int cmt_regexp_node::_node_count = 0 [static, private]
 

Definition at line 308 of file cmt_regexp.cxx.

Referenced by cmt_regexp_node(), node_count(), and ~cmt_regexp_node().


The documentation for this class was generated from the following file:
Generated on Mon May 2 10:25:31 2005 for CMT by doxygen 1.3.5