This module exports an agenda as used in the CDG netsearch module. The agenda manages a set of elements annoted with the ratings. Elements can be inserted according to their rating, and the first element can be retrieved.The agenda is not responsible for determining the rating of an element;it can only deal with pairs(subsequently called items) of elements and scores.
|
returns the best entry (= first) from the agenda.
|
|
performs internal consistency checks on a TreeAgenda. This is only for debugging purposes.
References taPrintNode(). Referenced by taInsert(). |
|
deletes the specified agenda. The function deallocates all the items in a using *freeState(). Then it deallocates all the entries and the agenda itself.
References taDeleteNode(). |
|
deletes a node.
Referenced by taDelete(). |
|
inserts a new entry into the agenda.
If the insertion leads to an overflow,then one of the elements from the tree is deallocated.Note that the element to be removed may be the state itself. Definition at line 379 of file treeagenda.c. References taCheckNode(), and taPrintNode(). |
|
checks if the specified TreeAgenda is empty.
|
|
checks for the truncation of the TreeAgenda a.
|
|
deletes the iterator object. The function deallocates the tree element that was used by the iterator.
|
|
creates a new iterator object. This function creates a new iterator for TreeAgenda a.
|
|
returns the next item in iterator object.
|
|
retrieves the size limit of the agenda.
|
|
retrieves the largest attained size of the agenda.
|
|
creates a new agenda.
|
|
prints a node. It is used by the taCheckNode().
Referenced by taCheckNode(), taInsert(), and taRemoveBest(). |
|
removes and returns best entry (= first) from the agenda.
References taPrintNode(). |
|
reset the agenda truncation warning.
|
|
sets verbosity flag.
|
|
retrieves size of the agenda.
|
|
gets verbosity flag.
|