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

implements leaf node More...

#include <xmlmodel.h>

Inheritance diagram for content_leaf:

content_node

List of all members.

Public Member Functions

virtual ~content_leaf ()
 destructor
 content_leaf (const elementDecl *decl, size_t pos)
const elementDeclget_decl () const
 returns element declaration
size_t get_pos () const
 returns position
void set_pos (size_t pos)
 sets postition
virtual bool is_nullable () const
 checks if the node is nullable

Protected Member Functions

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

Protected Attributes

const elementDecl_decl
 element declaration
size_t _pos
 position


Detailed Description

implements leaf node

Definition at line 121 of file xmlmodel.h.


Constructor & Destructor Documentation

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

destructor

Definition at line 126 of file xmlmodel.h.

content_leaf::content_leaf ( const elementDecl decl,
size_t  pos 
)

Parameters:
decl  element declaration
pos  position

Definition at line 78 of file xmlmodel.cpp.


Member Function Documentation

const elementDecl * content_leaf::get_decl (  )  const [inline]

returns element declaration

Definition at line 89 of file xmlmodel.hpp.

References _decl.

size_t content_leaf::get_pos (  )  const [inline]

returns position

Definition at line 96 of file xmlmodel.hpp.

References _pos.

void content_leaf::set_pos ( size_t  pos  )  [inline]

sets postition

Parameters:
pos  position

Definition at line 103 of file xmlmodel.hpp.

References _pos.

Referenced by content_children::build_dfa().

bool content_leaf::is_nullable (  )  const [virtual]

checks if the node is nullable

Implements content_node.

Definition at line 96 of file xmlmodel.cpp.

References _pos, and os_minus_one.

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

calculates postition

Parameters:
state  bitset

Implements content_node.

Definition at line 85 of file xmlmodel.cpp.

References _pos, os_minus_one, base_bitset::reset(), and base_bitset::set().


Member Data Documentation

const elementDecl* content_leaf::_decl [protected]

element declaration

Definition at line 160 of file xmlmodel.h.

Referenced by get_decl().

size_t content_leaf::_pos [protected]

position

Definition at line 161 of file xmlmodel.h.

Referenced by calc_pos(), get_pos(), is_nullable(), and set_pos().


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


© Copyright Terimber 2003-.