Edinburgh Speech Tools  2.1-release
EST_Relation_tree.h File Reference
#include "EST_Item.h"
Include dependency graph for EST_Relation_tree.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

EST_Itemparent (const EST_Item *n)
 return parent of n More...
 
EST_Itemdaughter1 (const EST_Item *n)
 return first daughter of n More...
 
EST_Itemdaughter2 (const EST_Item *n)
 return second daughter of n More...
 
EST_Itemdaughtern (const EST_Item *n, int nth)
 return nth daughter of n More...
 
EST_Itemdaughtern (const EST_Item *n)
 return last daughter of n More...
 
EST_Itemnext_sibling (const EST_Item *n)
 return next sibling (sister) of n More...
 
EST_Itemprev_sibling (const EST_Item *n)
 return previous sibling (sister) of n More...
 
EST_Itemroot (const EST_Item *n)
 return root node of treeprevious sibling (sister) of n More...
 
EST_Itemparent (const EST_Item *n, const char *relname)
 return parent of n as seen from relation relname More...
 
EST_Itemdaughter1 (const EST_Item *n, const char *relname)
 return first daughter of n as seen from relation relname More...
 
EST_Itemdaughter2 (const EST_Item *n, const char *relname)
 return second daughter of n as seen from relation relname More...
 
EST_Itemdaughtern (const EST_Item *n, const char *relname)
 return last daughter of n as seen from relation relname More...
 
EST_Itemnext_sibling (const EST_Item *n, const char *relname)
 return next sibling (sister) of n as seen from relation relname More...
 
EST_Itemprev_sibling (const EST_Item *n, const char *relname)
 return previous sibling (sister) of n as seen from relation relname More...
 
EST_Itemroot (const EST_Item *n, const char *relname)
 return root of tree of n as seen from relation relname More...
 
EST_Itemfirst_leaf_in_tree (const EST_Item *root)
 
EST_Itemlast_leaf_in_tree (const EST_Item *root)
 
EST_Itemfirst_leaf (const EST_Item *n)
 return the first leaf (terminal node) which is dominated by n. Note that this is different from daughter1 etc as this descends the tree to find the leftmost terminal node (it is like the transitive closure of daughter1). More...
 
EST_Itemlast_leaf (const EST_Item *n)
 
EST_Itemnext_leaf (const EST_Item *n)
 
int num_leaves (const EST_Item *n)
 
int in_tree (const EST_Item *c, const EST_Item *t)
 
EST_Itemappend_daughter (EST_Item *n, EST_Item *p=0)
 
EST_Itemappend_daughter (EST_Item *n, const char *relname, EST_Item *p=0)
 
EST_Itemprepend_daughter (EST_Item *n, EST_Item *p=0)
 
EST_Itemprepend_daughter (EST_Item *n, const char *relname, EST_Item *p=0)