#include <common/suif_indexed_list.h>
Public Members | |
| typedef list<pair> | pair_list |
| typedef pair_list::iterator | iterator |
| typedef pair_list::const_iterator | const_iterator |
| typedef pair | value_type |
| void | push_back (const Domain &key,const Range &value) |
| push to end of list. | |
| pair& | back () |
return a reference to the last element
| |
| iterator | insert (const iterator& pos, const pair& x) |
| Insert after the iterator position. | |
| void | clear_list () |
| Make the list empty. | |
| iterator | find (const Domain &key) |
| Find the entry with the given key. More... | |
| const_iterator | find (const Domain &key) const |
| int | num_with_key (const Domain &key) |
| Find the number of entries with the given key. | |
| iterator | find (const Domain &key,int no) |
| Find the nth entry with a given key. More... | |
| const_iterator | find (const Domain &key,int no) const |
| bool | is_member (const Domain &key) const |
| Return true if there is an entry with the given key. | |
| Range | remove (iterator iter) |
| Remove the value identified by the iterator. | |
| bool | remove (Domain &key) |
| Remove the first entry which matches the key. More... | |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| unsigned | length () const |
| Return number of entries. | |
| unsigned | size () const |
| Return number of entries. | |
| pair& | operator[] (int i) const |
Index operator
| |
The values are ordered as a list unlike suif_hash_map.
push to end of list.
Insert after the iterator position.
Make the list empty.
Find the entry with the given key.
Returns end() if none
Find the number of entries with the given key.
Find the nth entry with a given key.
Return true if there is an entry with the given key.
Remove the value identified by the iterator.
Remove the first entry which matches the key.
Return true if one was found
Return number of entries.
Return number of entries.
written by Dimitri van Heesch, © 1997-1999