#include <sql_list.h>
◆ const_iterator
◆ iterator
◆ List() [1/3]
◆ List() [2/3]
◆ List() [3/3]
◆ begin() [1/2]
◆ begin() [2/2]
◆ cbegin()
◆ cend()
◆ concat()
template<class T >
void List< T >::concat |
( |
List< T > * |
list | ) |
|
|
inline |
◆ delete_elements()
template<class T >
void List< T >::delete_elements |
( |
void |
| ) |
|
|
inline |
◆ destroy_elements()
template<class T >
void List< T >::destroy_elements |
( |
void |
| ) |
|
|
inline |
◆ disjoin()
template<class T >
void List< T >::disjoin |
( |
List< T > * |
list | ) |
|
|
inline |
◆ end() [1/2]
◆ end() [2/2]
◆ head() [1/2]
◆ head() [2/2]
template<class T >
const T * List< T >::head |
( |
| ) |
const |
|
inline |
◆ head_ref()
template<class T >
T ** List< T >::head_ref |
( |
| ) |
|
|
inline |
◆ operator=()
◆ operator[]()
template<class T >
T * List< T >::operator[] |
( |
uint |
index | ) |
const |
|
inline |
◆ pop()
template<class T >
T * List< T >::pop |
( |
void |
| ) |
|
|
inline |
◆ prepend()
template<class T >
void List< T >::prepend |
( |
List< T > * |
list | ) |
|
|
inline |
◆ push_back() [1/2]
template<class T >
bool List< T >::push_back |
( |
T * |
a | ) |
|
|
inline |
◆ push_back() [2/2]
◆ push_front() [1/2]
template<class T >
bool List< T >::push_front |
( |
T * |
a | ) |
|
|
inline |
◆ push_front() [2/2]
◆ replace()
template<class T >
void List< T >::replace |
( |
uint |
index, |
|
|
T * |
new_value |
|
) |
| |
|
inline |
◆ sort()
template<class T >
template<typename Node_cmp_func >
void List< T >::sort |
( |
Node_cmp_func |
cmp | ) |
|
|
inline |
Sort the list.
- Parameters
-
cmp | node comparison function |
The function sorts list nodes by an exchange sort algorithm. The order of list nodes isn't changed, values of info fields are swapped instead. Due to this, list iterators that are initialized before sort could be safely used after sort, i.e they wouldn't cause a crash. As this isn't an effective algorithm the list to be sorted is supposed to be short.
◆ swap_elts()
template<class T >
bool List< T >::swap_elts |
( |
uint |
index1, |
|
|
uint |
index2 |
|
) |
| |
|
inline |
The documentation for this class was generated from the following files: