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_unary Class Reference

implements unary node with one child More...

#include <xmlmodel.h>

Inheritance diagram for content_unary:

content_node

List of all members.

Public Member Functions

virtual ~content_unary ()
 destructor
 content_unary (dfaRule rule, content_node *child)
 constructor
content_nodeget_child () const
 returns child node
virtual bool is_nullable () const
 checks if node is nullable

Protected Member Functions

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

Private Attributes

content_node_child
 pointer to the child node


Detailed Description

implements unary node with one child

Definition at line 166 of file xmlmodel.h.


Constructor & Destructor Documentation

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

destructor

Definition at line 171 of file xmlmodel.h.

content_unary::content_unary ( dfaRule  rule,
content_node child 
)

constructor

Parameters:
rule  DFA rule
child  pointer to the child node

Definition at line 102 of file xmlmodel.cpp.

References DFA_ASTERISK, DFA_PLUS, and DFA_QUESTION.


Member Function Documentation

content_node * content_unary::get_child (  )  const [inline]

returns child node

Definition at line 112 of file xmlmodel.hpp.

References _child.

bool content_unary::is_nullable (  )  const [virtual]

checks if node is nullable

Implements content_node.

Definition at line 110 of file xmlmodel.cpp.

References _child, content_node::_rule, DFA_PLUS, and content_node::is_nullable().

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

calculates position

Parameters:
state  bitset
first  flag first or last

Implements content_node.

Definition at line 119 of file xmlmodel.hpp.

References _child, content_node::get_firstPos(), and content_node::get_lastPos().


Member Data Documentation

pointer to the child node

Definition at line 194 of file xmlmodel.h.

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


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


© Copyright Terimber 2003-.