#include <agtree.idl>
Public Methods | |
| AnnotationId | tree_init_tree (const AnnotationType &type, const Id &id="AGTree") | 
| Create an empty tree, a tree with only one node. More... | |
| 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... | |
| bool | tree_move_up (const AnnotationId &anno) | 
| Move the given node up, deleting the parent node. More... | |
| bool | tree_promote_right (const AnnotationId &anno) | 
| Make the given node a right sibling of parent node. More... | |
| bool | tree_promote_left (const AnnotationId &anno) | 
| Make the given node a left sibling of parent node. More... | |
| bool | tree_demote_right (const AnnotationId &anno) | 
| Make the given node a rightmost child of the left sibling. More... | |
| bool | tree_demote_left (const AnnotationId &anno) | 
| Make the given node a leftmost child of the right sibling. More... | |
| AnnotationId | tree_first_tree (const AGId &agId) | 
| Find the first tree (root) in a given annotation graph. More... | |
| AnnotationId | tree_last_tree (const AGId &agId) | 
| Find the last tree (root) in a given annotation graph. More... | |
| bool | tree_move (const AnnotationId &x, const AnnotationId &y) | 
| Move a subtree under a certain node. More... | |
| AnnotationId | tree_insert_node_left (const AnnotationId &x, const AnnotationType &type="wrd", AnnotationId annoId="") | 
| Insert a new terminal node on the left. More... | |
| AnnotationId | tree_insert_node_right (const AnnotationId &x, const AnnotationType &type="wrd", AnnotationId annoId="") | 
| Insert a new terminal node on the right. More... | |
| bool | tree_delete_node_left (const AnnotationId &x) | 
| Delete a node on the left. More... | |
| bool | tree_delete_node_right (const AnnotationId &x) | 
| Delete a node on the left. More... | |
| AnnotationId | tree_root (AnnotationId x, int depth=1) | 
| Find the root node. More... | |
| AnnotationId | tree_parent (const AnnotationId &x) | 
| Find the parent node. More... | |
| list<AnnotationIds> | tree_children (const AnnotationId &x) | 
| Find children. More... | |
| AnnotationId | tree_left (const AnnotationId &x) | 
| Find a left sibling. More... | |
| AnnotationId | tree_right (const AnnotationId &x) | 
| Find a right sibling. More... | |
| list<AnnotationId> | tree_path (AnnotationId x) | 
| Find a path from the root to the given node. More... | |
| AnnotationId | tree_common_ancestor (const AnnotationId &x, const AnnotationId &y) | 
| Find the nearest common ancestor of the two nodes. More... | |
| AnnotationId | tree_insert_node (const AnnotationId &x, const AnnotationId &y, const AnnotationType &type="syn", const AnnotationId &annoId="") | 
| Insert a non-terminal node. More... | |
| bool | tree_delete_node (const AnnotationId &x) | 
| Delete a non-terminal node. More... | |
      
  | 
  
| 
 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