Edinburgh Speech Tools  2.1-release
item_aux.cc File Reference
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <fstream>
#include "ling_class/EST_Item.h"
#include "ling_class/EST_Item_Content.h"
#include "ling_class/EST_Relation.h"
Include dependency graph for item_aux.cc:

Go to the source code of this file.

Functions

int in_list (const EST_Item *c, const EST_Item *l)
 
int in_tree (const EST_Item *c, const EST_Item *t)
 
void remove_item_list (EST_Relation *rel, EST_Item *item)
 
int merge_item (EST_Item *from, EST_Item *to)
 
void merge_features (EST_Item *to, EST_Item *from, int keep_id)
 
int move_item (EST_Item *from, EST_Item *to)
 
int move_sub_tree (EST_Item *from, EST_Item *to)
 
int exchange_sub_trees (EST_Item *from, EST_Item *to)
 
EST_Itemitem_jump (EST_Item *from, const EST_String &to)
 

Function Documentation

int in_list ( const EST_Item c,
const EST_Item l 
)

Given a node l, return true if c after it in a list relation.

Definition at line 47 of file item_aux.cc.

void remove_item_list ( EST_Relation rel,
EST_Item n 
)

Remove the given item.

Definition at line 72 of file item_aux.cc.

int merge_item ( EST_Item from,
EST_Item to 
)

Definition at line 85 of file item_aux.cc.

void merge_features ( EST_Item to,
EST_Item from,
int  keep_id 
)

Definition at line 105 of file item_aux.cc.

int move_item ( EST_Item from,
EST_Item to 
)

Definition at line 115 of file item_aux.cc.

int move_sub_tree ( EST_Item from,
EST_Item to 
)

Definition at line 128 of file item_aux.cc.

int exchange_sub_trees ( EST_Item from,
EST_Item to 
)

Definition at line 158 of file item_aux.cc.

EST_Item* item_jump ( EST_Item from,
const EST_String to 
)

Definition at line 183 of file item_aux.cc.