| 
													 
  Home / Open source / Terimber 2.0 
content_children Class Referenceimplements children content validator  
 More...
#include <xmlmodel.h>
 
 
List of all members. 
 Detailed Description
implements children content validator 
 Definition at line 290 of file xmlmodel.h. 
 Constructor & Destructor Documentation
constructor 
 
 - Parameters: 
 - 
| parent  | 
parent DFA token  |  
| tmp_allocator  | 
temporary allocator  |  
 
  
Definition at line 242 of file xmlmodel.cpp. 
References build_dfa(). 
 
 
 
 Member Function Documentation
      
        
          | void content_children::validate            | 
          ( | 
          const xml_element &  | 
           el           | 
           )  | 
           [virtual] | 
         
       
 
validates element 
 
 - Parameters: 
 - 
  
Implements content_interface. 
Definition at line 712 of file xmlmodel.cpp. 
References elementDecl::_content, xml_node::_decl, _elemMap, _elemMapSize, _emptyOk, _finalStateFlags, xml_container::_first_child, namedNode::_name, xml_tree_node::_right, exception::_throw(), _transTable, xml_element::cast_decl(), xml_element::cast_to_element(), CONTENT_ANY, ELEMENT_NODE, xml_container::has_children(), and os_minus_one. 
 
 
 
builds children tree 
 
 - Parameters: 
 - 
  
Definition at line 252 of file xmlmodel.cpp. 
References dfa_token::_decl, dfa_token::_first, dfa_token::_last, _leafCount, dfa_token::_rule, _tmp_allocator, byte_allocator::allocate(), DFA_ANY, DFA_ASTERISK, DFA_CHOICE, DFA_LEAF, DFA_PLUS, DFA_QUESTION, and DFA_SEQUENCE. 
Referenced by build_dfa(). 
 
 
 
      
        
          | size_t content_children::post_tree_build_init            | 
          ( | 
          content_node *  | 
           nodeCur,  | 
         
        
           | 
           | 
          size_t  | 
           curIndex |   | 
         
        
           | 
          ) | 
           |  |  [private] | 
         
       
 
initializes current node by index 
 
 - Parameters: 
 - 
| nodeCur  | 
pointer to the content node  |  
| curIndex  | 
index  |  
 
  
Definition at line 282 of file xmlmodel.cpp. 
References _leafCount, _leafList, _leafListType, _tmp_allocator, byte_allocator::allocate(), DFA_ANY, DFA_ASTERISK, DFA_CHOICE, DFA_LEAF, DFA_PLUS, DFA_QUESTION, DFA_SEQUENCE, content_node::get_rule(), and content_node::init(). 
Referenced by build_dfa(). 
 
 
 
      
        
          | void content_children::calc_follow_list            | 
          ( | 
          content_node *  | 
           curNode           | 
           )  | 
           [private] | 
         
       
 
calculates follow-up list 
 
 - Parameters: 
 - 
| curNode  | 
pointer to the content node  |  
 
  
Definition at line 330 of file xmlmodel.cpp. 
References _followList, _leafCount, DFA_ASTERISK, DFA_CHOICE, DFA_PLUS, DFA_QUESTION, DFA_SEQUENCE, base_bitset::get(), content_node::get_firstPos(), content_node::get_lastPos(), and content_node::get_rule(). 
Referenced by build_dfa(). 
 
 
 
      
        
          | void content_children::build_dfa            | 
          ( | 
          const dfa_token *  | 
           parent           | 
           )  | 
           [private] | 
         
       
 
constructs DFA 
 
 - Parameters: 
 - 
  
Definition at line 391 of file xmlmodel.cpp. 
References _elemMap, _elemMapSize, _elemMapType, _emptyOk, _EOCPos, _finalStateFlags, _followList, _leafCount, _leafList, _leafListType, _leafNameTypeVector, _tmp_allocator, _transTable, _transTableSize, byte_allocator::allocate(), _vector< T, A >::assign(), _bitset::assign(), build_children_tree(), calc_follow_list(), _bitset::clear(), DFA_LEAF, DFA_SEQUENCE, base_bitset::empty(), base_map< K, T, Pr, M >::end(), base_map< K, T, Pr, M >::find(), base_bitset::get(), content_node::get_firstPos(), _map< K, T, A, Pr, M >::insert(), content_node::is_nullable(), make_def_state_list(), os_minus_one, post_tree_build_init(), _vector< T, A >::reduce(), base_bitset::reset(), _bitset::resize(), _vector< T, A >::resize(), and content_leaf::set_pos(). 
Referenced by content_children(). 
 
 
 
      
        
          | void content_children::make_def_state_list            | 
          ( | 
          _vector< size_t > &  | 
           x           | 
           )  | 
           const [inline, private] | 
         
       
 
 
 
 Member Data Documentation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 The documentation for this class was generated from the following files: 
 
												 | 
												
  |