44#include "ling_class/EST_Item_Content.h"
45#include "ling_class/EST_Item.h"
56 if (relations.
length() != 0)
58 cerr <<
"EST_Contents: contents still referenced by Relations" << endl;
62int EST_Item_Content::unref_relation(
const EST_String &relname)
66 if ((relname ==
"") && (relations.
length() == 1))
76 printf(
"failed to find %s in %s at %g\n",
77 (
const char *)relname,
80 if (relations.
length() == 0)
85int EST_Item_Content::unref_and_delete()
91 for (p=relations.
list.head(); p;)
93 np = ::item(relations.
list(p).v);
111 s << a.
name() <<
" ; ";
114 for (p=a.relations.
list.head(); p; p = p->next())
115 s <<
" " << a.relations.
list(p).k;
const float F(const EST_String &path) const
~EST_Item_Content()
destructor
const EST_String name() const
EST_Features f
General features for this item.
const int length() const
number of key value pairs in list
int remove_item(const K &rkey, int quiet=0)
remove key and val pair from list
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.
const int present(const K &rkey) const
Returns true if key is present.