FreeLing  3.0
Public Member Functions | Static Public Attributes | Private Attributes
parse_tree Class Reference

Class parse tree is used to store the results of parsing. More...

#include <language.h>

Inheritance diagram for parse_tree:
Inheritance graph
[legend]
Collaboration diagram for parse_tree:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 parse_tree ()
 Methods for parse_tree.
 parse_tree (parse_tree::iterator p)
 parse_tree (const node &)
void build_node_index ()
 assign an id to each node and build index
void rebuild_node_index ()
 rebuild index maintaining node id's
parse_tree::iterator get_node_by_id (std::wstring) const
 access the node with given id

Static Public Attributes

static int nsentence = 0
 Class parse tree is used to store the results of parsing.

Private Attributes

std::map< std::wstring,
parse_tree::iterator
node_index

Detailed Description

Class parse tree is used to store the results of parsing.


Constructor & Destructor Documentation

Methods for parse_tree.

parse_tree::parse_tree ( const node n)

Member Function Documentation

assign an id to each node and build index

assign id's to nodes and build index

References tree< node >::begin(), tree< node >::end(), util::int2wstring(), node_index, and nsentence.

access the node with given id

get node with given index.

References node_index.

rebuild index maintaining node id's

References tree< node >::begin(), tree< node >::end(), and node_index.

Referenced by completer::complete().


Member Data Documentation

std::map<std::wstring,parse_tree::iterator> parse_tree::node_index [private]
int parse_tree::nsentence = 0 [static]

Class parse tree is used to store the results of parsing.

Referenced by build_node_index().


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