#include "AGTypes.h"#include <list>#include <string>Include dependency graph for agtree.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | DllExport |
Functions | |
| DllExport AnnotationId | tree_init_tree (const AnnotationType &type, const Id &id="AGTree") |
| Create an empty tree, a tree with only one node. More... | |
| DllExport bool | tree_move_down (const AnnotationId &anno, const AnnotationType &type="syn", AnnotationId new_anno="") |
| Move the given node down, creating a new node above it. More... | |
| DllExport bool | tree_move_up (const AnnotationId &anno) |
| Move the given node up, deleting the parent node. More... | |
| DllExport bool | tree_promote_right (const AnnotationId &anno) |
| Make the given node a right sibling of parent node. More... | |
| DllExport bool | tree_promote_left (const AnnotationId &anno) |
| Make the given node a left sibling of parent node. More... | |
| DllExport bool | tree_demote_right (const AnnotationId &anno) |
| Make the given node a rightmost child of the left sibling. More... | |
| DllExport bool | tree_demote_left (const AnnotationId &anno) |
| Make the given node a leftmost child of the right sibling. More... | |
| DllExport AnnotationId | tree_first_tree (const AGId &agId) |
| Find the first tree (root) in a given annotation graph. More... | |
| DllExport AnnotationId | tree_last_tree (const AGId &agId) |
| Find the last tree (root) in a given annotation graph. More... | |
| DllExport bool | tree_move (const AnnotationId &x, const AnnotationId &y) |
| Move a subtree under a certain node. More... | |
| DllExport AnnotationId | tree_insert_node_left (const AnnotationId &x, const AnnotationType &type="wrd", AnnotationId annoId="") |
| Insert a new terminal node on the left. More... | |
| DllExport AnnotationId | tree_insert_node_right (const AnnotationId &x, const AnnotationType &type="wrd", AnnotationId annoId="") |
| Insert a new terminal node on the right. More... | |
| DllExport bool | tree_delete_node_left (const AnnotationId &x) |
| Delete a node on the left. More... | |
| DllExport bool | tree_delete_node_right (const AnnotationId &x) |
| Delete a node on the left. More... | |
| DllExport AnnotationId | tree_root (AnnotationId x, int depth=1) |
| Find the root node. More... | |
| DllExport AnnotationId | tree_parent (const AnnotationId &x) |
| Find the parent node. More... | |
| DllExport list<AnnotationIds> | tree_children (const AnnotationId &x) |
| Find children. More... | |
| DllExport AnnotationId | tree_left (const AnnotationId &x) |
| Find a left sibling. More... | |
| DllExport AnnotationId | tree_right (const AnnotationId &x) |
| Find a right sibling. More... | |
| DllExport list<AnnotationId> | tree_path (AnnotationId x) |
| Find a path from the root to the given node. More... | |
| DllExport AnnotationId | tree_common_ancestor (const AnnotationId &x, const AnnotationId &y) |
| Find the nearest common ancestor of the two nodes. More... | |
| DllExport AnnotationId | tree_insert_node (const AnnotationId &x, const AnnotationId &y, const AnnotationType &type="syn", const AnnotationId &annoId="") |
| Insert a non-terminal node. More... | |
| DllExport bool | tree_delete_node (const AnnotationId &x) |
| Delete a non-terminal node. More... | |
|
|
Value: |
|
|
Find children.
|
|
|
Find the nearest common ancestor of the two nodes.
|
|
|
Delete a non-terminal node.
|
|
|
Delete a node on the left.
|
|
|
Delete a node on the left.
|
|
|
Make the given node a leftmost child of the right sibling.
|
|
|
Make the given node a rightmost child of the left sibling.
|
|
|
Find the first tree (root) in a given annotation graph.
|
|
|
Create an empty tree, a tree with only one node.
|
|
|
Insert a non-terminal node.
|
|
|
Insert a new terminal node on the left.
|
|
|
Insert a new terminal node on the right.
|
|
|
Find the last tree (root) in a given annotation graph.
|
|
|
Find a left sibling.
|
|
|
Move a subtree under a certain node.
|
|
|
Move the given node down, creating a new node above it.
|
|
|
Move the given node up, deleting the parent node.
|
|
|
Find the parent node.
|
|
|
Find a path from the root to the given node.
|
|
|
Make the given node a left sibling of parent node.
|
|
|
Make the given node a right sibling of parent node.
|
|
|
Find a right sibling.
|
|
|
Find the root node.
|
1.2.7 written by Dimitri van Heesch,
© 1997-2001