|
FreeLing
3.0
|
Class parse tree is used to store the results of parsing. More...
#include <language.h>


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 |
Class parse tree is used to store the results of parsing.
Methods for parse_tree.
| parse_tree::parse_tree | ( | const node & | n | ) |
| void parse_tree::build_node_index | ( | ) |
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.
| parse_tree::iterator parse_tree::get_node_by_id | ( | std::wstring | ) | const |
| void parse_tree::rebuild_node_index | ( | ) |
rebuild index maintaining node id's
References tree< node >::begin(), tree< node >::end(), and node_index.
Referenced by completer::complete().
std::map<std::wstring,parse_tree::iterator> parse_tree::node_index [private] |
Referenced by build_node_index(), get_node_by_id(), and rebuild_node_index().
int parse_tree::nsentence = 0 [static] |
Class parse tree is used to store the results of parsing.
Referenced by build_node_index().
1.7.6.1