12 #ifndef DtSortedList_H_
13 #define DtSortedList_H_
17 #include <vlutil/vlMachineTypes.h>
122 virtual void setSortOrder(
DtSortOrder sortOrderValue);
131 unsigned count()
const;
151 virtual void removeAll();
158 virtual void reverseSortOrder();
218 ? (firstItem <= secondItem) : (firstItem >= secondItem);
DtSortedListItem * myNext
Definition: sortedList.h:61
virtual bool compareItems(const DtSortedListItem &firstItem, const DtSortedListItem &secondItem) const
Compare the two items based on sort order and return true if first comes first in order to second...
Definition: sortedList.h:214
Definition: sortedList.h:83
unsigned count() const
Returns the number of elements in the list.
Definition: sortedList.h:231
unsigned myCount
Definition: sortedList.h:205
virtual void printData(DtSortOrder order=DtSortOrderAscending)
Print the list.
DtSortedListItem * myPrev
Definition: sortedList.h:60
DtSortOrder
Definition: sortedList.h:80
DtSortedListItem is an envelope class used by DtSortedList.
Definition: sortedList.h:24
void * myData
Definition: sortedList.h:62
void * data() const
Returns the data element contained in the DtSortedListItem envelope.
Definition: sortedList.h:65
DtSortedListItem * myFirst
Definition: sortedList.h:203
DtSortedListItem * prev() const
Return previous (next) item.
Definition: sortedList.h:70
virtual DtSortOrder sortOrder() const
Definition: sortedList.h:209
virtual DtSortedListItem * first() const
Return first and last item on the list.
Definition: sortedList.h:221
DtSortedListItem * next() const
Definition: sortedList.h:75
DtSortedListItem * myLast
Definition: sortedList.h:204
#define DT_DLL_RTIUTIL
Definition: rtiMsConfig.h:160
A DtSortedList is a list of elements of arbitrary type.
Definition: sortedList.h:98
virtual DtSortedListItem * last() const
Definition: sortedList.h:226
Definition: sortedList.h:82
DtSortOrder mySortOrder
Definition: sortedList.h:206