Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

content_binary Class Reference

implements binary node with two children More...

#include <xmlmodel.h>

Inheritance diagram for content_binary:

content_node

List of all members.

Public Member Functions

virtual ~content_binary ()
 destructor
 content_binary (dfaRule rule, content_node *left, content_node *right)
 constructor
content_nodeget_left () const
 returns left node
content_nodeget_right () const
 returns right node
virtual bool is_nullable () const
 checks if the node is nullable

Protected Member Functions

virtual void calc_pos (_bitset &state, bool first) const
 calculates position

Private Attributes

content_node_left
 pointer to the left node
content_node_right
 pointer to the right node


Detailed Description

implements binary node with two children

Definition at line 199 of file xmlmodel.h.


Constructor & Destructor Documentation

virtual content_binary::~content_binary (  )  [inline, virtual]

destructor

Definition at line 204 of file xmlmodel.h.

content_binary::content_binary ( dfaRule  rule,
content_node left,
content_node right 
)

constructor

Parameters:
rule  DFA rule
left  pointer to the left node
right  pointer to the right node

Definition at line 115 of file xmlmodel.cpp.

References DFA_CHOICE, and DFA_SEQUENCE.


Member Function Documentation

content_node * content_binary::get_left (  )  const [inline]

returns left node

Definition at line 127 of file xmlmodel.hpp.

References _left.

content_node * content_binary::get_right (  )  const [inline]

returns right node

Definition at line 134 of file xmlmodel.hpp.

References _right.

bool content_binary::is_nullable (  )  const [virtual]

checks if the node is nullable

Implements content_node.

Definition at line 140 of file xmlmodel.cpp.

References _left, _right, content_node::_rule, DFA_CHOICE, and content_node::is_nullable().

void content_binary::calc_pos ( _bitset state,
bool  first 
) const [protected, virtual]

calculates position

Parameters:
state  bitset
first  flag first of last

Implements content_node.

Definition at line 123 of file xmlmodel.cpp.

References _left, _right, content_node::_rule, DFA_CHOICE, DFA_SEQUENCE, content_node::get_firstPos(), content_node::get_lastPos(), and content_node::is_nullable().


Member Data Documentation

pointer to the left node

Definition at line 233 of file xmlmodel.h.

Referenced by calc_pos(), get_left(), and is_nullable().

pointer to the right node

Definition at line 234 of file xmlmodel.h.

Referenced by calc_pos(), get_right(), and is_nullable().


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


© Copyright Terimber 2003-.