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

DFA content node. More...

#include <xmlmodel.h>

Inheritance diagram for content_node:

content_any content_binary content_leaf content_unary

List of all members.

Public Member Functions

virtual ~content_node ()
 destructor
 content_node (dfaRule rule)
 constructor
void init (byte_allocator &allocator_, size_t sizeBit)
dfaRule get_rule () const
 returns the DFA ruke
const _bitsetget_firstPos () const
 returns the first bitset
const _bitsetget_lastPos () const
 returns the last bitset
virtual bool is_nullable () const =0
 checks if the node is nullable

Protected Member Functions

virtual void calc_pos (_bitset &state, bool first) const =0
 claculates position

Protected Attributes

dfaRule _rule
 DFA rule.
size_t _max_states
 max rules
_bitset _firstPos
 first bitset
_bitset _lastPos
 last bitset


Detailed Description

DFA content node.

Definition at line 39 of file xmlmodel.h.


Constructor & Destructor Documentation

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

destructor

Definition at line 44 of file xmlmodel.h.

BEGIN_TERIMBER_NAMESPACE content_node::content_node ( dfaRule  rule  ) 

constructor

Parameters:
rule  DFA rule

Definition at line 47 of file xmlmodel.cpp.


Member Function Documentation

BEGIN_TERIMBER_NAMESPACE void content_node::init ( byte_allocator allocator_,
size_t  sizeBit 
) [inline]

Parameters:
allocator_  external allocator
sizeBit  bit size

Definition at line 39 of file xmlmodel.hpp.

References _firstPos, _lastPos, and _bitset::resize().

Referenced by content_children::post_tree_build_init().

dfaRule content_node::get_rule (  )  const [inline]

returns the DFA ruke

Definition at line 47 of file xmlmodel.hpp.

References _rule.

Referenced by content_children::calc_follow_list(), and content_children::post_tree_build_init().

const _bitset & content_node::get_firstPos (  )  const [inline]

const _bitset & content_node::get_lastPos (  )  const [inline]

virtual bool content_node::is_nullable (  )  const [pure virtual]

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

claculates position

Parameters:
state  bitset of states
first  flag first or last

Implemented in content_any, content_leaf, content_unary, and content_binary.

Referenced by get_firstPos(), and get_lastPos().


Member Data Documentation

size_t content_node::_max_states [protected]

max rules

Definition at line 81 of file xmlmodel.h.

first bitset

Definition at line 82 of file xmlmodel.h.

Referenced by get_firstPos(), and init().

last bitset

Definition at line 83 of file xmlmodel.h.

Referenced by get_lastPos(), and init().


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


© Copyright Terimber 2003-.