37 #ifndef __EST_RELATION_H__
38 #define __EST_RELATION_H__
40 #include "EST_String.h"
43 #include "EST_THash.h"
45 #include "EST_types.h"
46 #include "EST_Token.h"
47 #include "EST_Features.h"
48 #include "ling_class/EST_Item.h"
73 EST_write_status save_items(
EST_Item *item,
77 int &node_count)
const;
79 static void node_tidy_up_val(
int &k,
EST_Val &v);
80 static void node_tidy_up(
int &k,
EST_Item *node);
144 int empty()
const {
return p_head == 0; }
174 bool evaluate_ff =
false)
const;
179 bool evaluate_ff =
false)
const;
185 EST_write_status
save(ostream &outf,
187 bool evaluate_ff)
const;
192 friend ostream& operator << (ostream &s,
const EST_Relation &u);
205 {
return (&a == &b); }
219 : rel(r), next(NULL) { reset();};
223 bool has_more_elements()
224 {
return next != NULL; }
void remove_item(EST_Item *item)
An open hash table. The number of buckets should be set to allow enough space that there are relative...
EST_Relation(const EST_Relation &r)
EST_Relation_Iterator Iterator
void set_utt(EST_Utterance *u)
void evaluate_item_features()
const EST_String & name() const
Templated Key-Value list. Objects of type EST_TKVL contain lists which are accessed by a key of type ...
EST_Relation * relation(void) const
The relation of this particular item.
EST_Utterance * utt(void)
EST_write_status save(const EST_String &filename, bool evaluate_ff=false) const
void remove_item_feature(const EST_String &name)
EST_read_status load(const EST_String &filename, const EST_String &type="esps")
static const EST_String Empty
Constant empty string.