43#include "ling_class/EST_Item.h"
44#include "ling_class/EST_Item_Content.h"
45#include "ling_class/EST_Relation.h"
51 for (i=l; i != 0; i=inext(i))
65 for (i=daughter1(t); i != 0; i=next_sibling(i))
82 EST_Item::splice(p,n);
91 merge_features(to->features(),from->features());
98 i->set_contents(to->contents());
100 from->set_contents(to->contents());
110 if (keep_id) keep = to->
S(
"id",
"0");
111 merge_features(to->features(),from->features());
112 if (keep_id) to->
set(
"id", keep);
121 to->set_contents(from->contents());
135 if (in_tree(to,from))
138 to->set_contents(from->contents());
141 d = to->grab_daughters();
144 if ((rfrom != 0) && (daughter1(rfrom)))
146 copy_node_tree(daughter1(rfrom),to->insert_below(daughter1(rfrom)));
164 if ((!rfrom) || (in_tree(rfrom,to)) || (in_tree(to,rfrom)))
169 EST_Item *from_d = rfrom->grab_daughters();
170 EST_Item *to_d = to->grab_daughters();
172 to->set_contents(fromc);
173 rfrom->set_contents(toc);
175 copy_node_tree(from_d,to->insert_below(from_d));
177 copy_node_tree(to_d,from->insert_below(to_d));
194 else if (to ==
"Syllable")
196 else if (to ==
"Word")
198 else if (to ==
"IntEvent")
210 if ( t == 0 || f == 0 )
int in_relation(const EST_String &relname) const
TRUE if this item is in named relation.
void set(const EST_String &name, int ival)
EST_TKVL< EST_String, EST_Val > & relations()
Access to the relation links.
const EST_String S(const EST_String &name) const
const EST_String & relation_name() const
The relation name of this particular item.
EST_Item * as_relation(const char *relname) const
View item from another relation (const char *) method.
void remove_item(EST_Item *item)
EST_TList< EST_TKVI< K, V > > list
Linked list of key-val pairs. Don't use this as it will be made private in the future.