Public Member Functions | |
NSortedList (void) | |
Constructs an empty NSortedList object. | |
NSortedList (const T &val) | |
Constructs a NSortedList object and inserts val. | |
NSortedList (const NSortedList< T > &other) | |
Copy constructor. | |
NSortedList< T > & | insert (const T &val) |
Inserts a item on the list. |
You should not use this class to store a large amount of itens because this class is very slow (+/- 200 itens added p/ sec on a p4 2.2ghz). You should use a NSkipList instead
Definition at line 41 of file nsortedlist.hpp.
NSortedList | ( | const T & | val | ) | [inline] |
Constructs a NSortedList object and inserts val.
val | The first item to be inserted |
Definition at line 91 of file nsortedlist.hpp.
NSortedList | ( | const NSortedList< T > & | other | ) | [inline] |
Copy constructor.
other | A NSortedList object containing the items to be copied |
Definition at line 99 of file nsortedlist.hpp.
References NList::copy().
NSortedList< T > & insert | ( | const T & | val | ) | [inline] |
Inserts a item on the list.
val | Item to be inserted |
Definition at line 125 of file nsortedlist.hpp.
References NList::contains(), NListNode::data, NListNode::next, and NListNode::previous.