

Public Methods | |
| cmt_node_set () | |
| cmt_node_set (cmt_node_set* father) | |
| ~cmt_node_set () | |
| cmt_node_set* | father () |
| void | clear () |
| void | push (cmt_node* n) |
| cmt_node* | pop () |
| cmt_node* | top () const |
| int | nodes () const |
| const cmt_node* | nodeAt (int index) const |
| bool | parentheses () const |
| void | set_parentheses (bool value) |
| virtual void | reduce () |
Protected Attributes | |
| cmt_node_set* | _father |
| cmt_vector<cmt_node*> | _nodes |
| bool | _parentheses |
|
|
Definition at line 697 of file cmt_regexp.cxx. 00697 : _father (0) 00698 { 00699 _parentheses = false; 00700 } |
|
|
Definition at line 702 of file cmt_regexp.cxx. |
|
|
Definition at line 708 of file cmt_regexp.cxx. 00709 {
00710 clear ();
00711 }
|
|
|
Definition at line 718 of file cmt_regexp.cxx. Referenced by ~cmt_node_set(). |
|
|
Definition at line 713 of file cmt_regexp.cxx. Referenced by cmt_regexp::cmt_regexp(). 00714 {
00715 return (_father);
00716 }
|
|
|
Definition at line 763 of file cmt_regexp.cxx. 00764 {
00765 return (_nodes[index]);
00766 }
|
|
|
Definition at line 758 of file cmt_regexp.cxx. Referenced by cmt_regexp::cmt_regexp(), and cmt_and_node::fill(). 00759 {
00760 return (_nodes.size ());
00761 }
|
|
|
Definition at line 768 of file cmt_regexp.cxx. Referenced by cmt_regexp::cmt_regexp(). 00769 {
00770 return (_parentheses);
00771 }
|
|
|
Definition at line 735 of file cmt_regexp.cxx. Referenced by cmt_regexp::cmt_regexp(). 00736 {
00737 if (_nodes.size () == 0) return (&cmt_node::null ());
00738
00739 int index = _nodes.size () - 1;
00740
00741 cmt_node* n = _nodes[index];
00742 _nodes.erase (index);
00743
00744 return (n);
00745 }
|
|
|
Definition at line 730 of file cmt_regexp.cxx. Referenced by cmt_node_set(), cmt_regexp::cmt_regexp(), and cmt_and_node::fill(). 00731 {
00732 _nodes.push_back (n);
00733 }
|
|
|
Reimplemented in cmt_and_node. Definition at line 778 of file cmt_regexp.cxx. Referenced by cmt_regexp::cmt_regexp(). 00779 {
00780 }
|
|
|
Definition at line 773 of file cmt_regexp.cxx. Referenced by cmt_regexp::cmt_regexp(). 00774 {
00775 _parentheses = value;
00776 }
|
|
|
Definition at line 747 of file cmt_regexp.cxx. Referenced by cmt_regexp::cmt_regexp(). 00748 {
00749 if (_nodes.size () == 0) return (&cmt_node::null ());
00750
00751 int index = _nodes.size () - 1;
00752
00753 cmt_node* n = _nodes[index];
00754
00755 return (n);
00756 }
|
|
|
Definition at line 143 of file cmt_regexp.cxx. |
|
|
Definition at line 144 of file cmt_regexp.cxx. |
|
|
Definition at line 145 of file cmt_regexp.cxx. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000