#include <elm/data/SortedList.h>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
template<template< class _ > class CC>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
int SortedList::count |
( |
void |
| ) |
const |
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
const T & SortedList::first |
( |
void |
| ) |
const |
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
bool SortedList::isEmpty |
( |
void |
| ) |
const |
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
const T & SortedList::last |
( |
void |
| ) |
const |
Get the last item of the list. Remark that this method is really inefficient. Its working time is in O(n), n number of nodes in the list. Use it only with small list or revert to more powerful data structures.
- Returns
- Last item.
- Warning
- It is an error to call this method if the list is empty.
Referenced by elm::genstruct::AssocList< string, Section * >::last().
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
void SortedList::remove |
( |
const T & |
item | ) |
|
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
template<template< class _ > class CC>
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
void SortedList::removeFirst |
( |
void |
| ) |
|
Remove the first item from the list.
- Warning
- It is an error to call this method if the list is empty.
template<class T, class C = Comparator<T>, class A = IdAdapter<T>>
void SortedList::removeLast |
( |
void |
| ) |
|
Remove the last item from the list. Remark that this method is really inefficient. Its working time is in O(n), n number of nodes in the list. Use it only with small list or revert to more powerful data structures.
- Warning
- It is an error to call this method if the list is empty.
The documentation for this class was generated from the following files: