Wiselib
|
#include <list_static.h>
Public Types | |
typedef list_iterator< Value_P > | iterator |
typedef list_static< OsModel_P, Value_P, ListSize_P > | list_type |
typedef list_node< Value_P > | node_type |
typedef reverse_iterator < iterator > | riterator |
typedef Value_P | value_type |
typedef value_type * | pointer |
typedef value_type & | reference |
Public Member Functions | |
list_static () | |
default constructor | |
list_static (const list_static &list) | |
copy constructor | |
list_static & | operator= (const list_static &list) |
Iterators | |
| |
iterator | begin () const |
iterator | end () const |
riterator | rbegin () |
riterator | rend () |
Capacity | |
| |
bool | empty () const |
bool | full () const |
list_size_t | max_size () const |
list_size_t | size () const |
list_size_t | capacity () const |
Element Access | |
| |
value_type & | front () |
const value_type & | front () const |
value_type & | back () |
const value_type & | back () const |
Modifiers | |
remove element at given position | |
const node_type * | erase (iterator position) |
void | erase (iterator first, iterator last) |
remove all elements in given range | |
bool | insert (iterator position, const value_type &x) |
insert new element at given position with given value | |
void | insert (iterator position, list_size_t n, const value_type &x) |
insert n elements with given value at given position | |
template<typename InputIterator_P > | |
bool | insert (iterator position, InputIterator_P first, InputIterator_P last) |
copy elements from first to last at position | |
bool | push_back (const value_type &x) |
insert element at list end | |
bool | push_front (const value_type &x) |
insert element at list beginning | |
const node_type * | pop_back () |
removes last element | |
const node_type * | pop_front () |
removes first element | |
void | reverse () |
reverse order of list elements | |
void | clear () |
remove all list elements in constant time | |
void | remove (const value_type &value) |
remove every element with given value | |
void | splice (iterator position, list_type &l) |
transfer elements of list l to position | |
void | unique () |
removes every but the first occurrence in a consecutive set of elements with the same value | |
Static Public Attributes | |
static const list_size_t | LIST_SIZE = (ListSize_P < 1) ? 1 : ListSize_P |
typedef list_iterator<Value_P> wiselib::list_static< OsModel_P, Value_P, ListSize_P >::iterator |
typedef list_static<OsModel_P, Value_P, ListSize_P> wiselib::list_static< OsModel_P, Value_P, ListSize_P >::list_type |
typedef list_node<Value_P> wiselib::list_static< OsModel_P, Value_P, ListSize_P >::node_type |
typedef value_type* wiselib::list_static< OsModel_P, Value_P, ListSize_P >::pointer |
typedef value_type& wiselib::list_static< OsModel_P, Value_P, ListSize_P >::reference |
typedef reverse_iterator<iterator> wiselib::list_static< OsModel_P, Value_P, ListSize_P >::riterator |
typedef Value_P wiselib::list_static< OsModel_P, Value_P, ListSize_P >::value_type |
wiselib::list_static< OsModel_P, Value_P, ListSize_P >::list_static | ( | ) | [inline] |
default constructor
wiselib::list_static< OsModel_P, Value_P, ListSize_P >::list_static | ( | const list_static< OsModel_P, Value_P, ListSize_P > & | list | ) | [inline] |
copy constructor
value_type& wiselib::list_static< OsModel_P, Value_P, ListSize_P >::back | ( | ) | [inline] |
const value_type& wiselib::list_static< OsModel_P, Value_P, ListSize_P >::back | ( | ) | const [inline] |
iterator wiselib::list_static< OsModel_P, Value_P, ListSize_P >::begin | ( | ) | const [inline] |
list_size_t wiselib::list_static< OsModel_P, Value_P, ListSize_P >::capacity | ( | ) | const [inline] |
void wiselib::list_static< OsModel_P, Value_P, ListSize_P >::clear | ( | void | ) | [inline] |
remove all list elements in constant time
bool wiselib::list_static< OsModel_P, Value_P, ListSize_P >::empty | ( | ) | const [inline] |
iterator wiselib::list_static< OsModel_P, Value_P, ListSize_P >::end | ( | ) | const [inline] |
void wiselib::list_static< OsModel_P, Value_P, ListSize_P >::erase | ( | iterator | first, |
iterator | last | ||
) | [inline] |
remove all elements in given range
const node_type* wiselib::list_static< OsModel_P, Value_P, ListSize_P >::erase | ( | iterator | position | ) | [inline] |
value_type& wiselib::list_static< OsModel_P, Value_P, ListSize_P >::front | ( | ) | [inline] |
const value_type& wiselib::list_static< OsModel_P, Value_P, ListSize_P >::front | ( | ) | const [inline] |
bool wiselib::list_static< OsModel_P, Value_P, ListSize_P >::full | ( | ) | const [inline] |
bool wiselib::list_static< OsModel_P, Value_P, ListSize_P >::insert | ( | iterator | position, |
const value_type & | x | ||
) | [inline] |
insert new element at given position with given value
void wiselib::list_static< OsModel_P, Value_P, ListSize_P >::insert | ( | iterator | position, |
list_size_t | n, | ||
const value_type & | x | ||
) | [inline] |
insert n elements with given value at given position
bool wiselib::list_static< OsModel_P, Value_P, ListSize_P >::insert | ( | iterator | position, |
InputIterator_P | first, | ||
InputIterator_P | last | ||
) | [inline] |
copy elements from first to last at position
list_size_t wiselib::list_static< OsModel_P, Value_P, ListSize_P >::max_size | ( | ) | const [inline] |
list_static& wiselib::list_static< OsModel_P, Value_P, ListSize_P >::operator= | ( | const list_static< OsModel_P, Value_P, ListSize_P > & | list | ) | [inline] |
const node_type* wiselib::list_static< OsModel_P, Value_P, ListSize_P >::pop_back | ( | ) | [inline] |
removes last element
const node_type* wiselib::list_static< OsModel_P, Value_P, ListSize_P >::pop_front | ( | ) | [inline] |
removes first element
bool wiselib::list_static< OsModel_P, Value_P, ListSize_P >::push_back | ( | const value_type & | x | ) | [inline] |
insert element at list end
bool wiselib::list_static< OsModel_P, Value_P, ListSize_P >::push_front | ( | const value_type & | x | ) | [inline] |
insert element at list beginning
riterator wiselib::list_static< OsModel_P, Value_P, ListSize_P >::rbegin | ( | ) | [inline] |
void wiselib::list_static< OsModel_P, Value_P, ListSize_P >::remove | ( | const value_type & | value | ) | [inline] |
remove every element with given value
riterator wiselib::list_static< OsModel_P, Value_P, ListSize_P >::rend | ( | ) | [inline] |
void wiselib::list_static< OsModel_P, Value_P, ListSize_P >::reverse | ( | ) | [inline] |
reverse order of list elements
list_size_t wiselib::list_static< OsModel_P, Value_P, ListSize_P >::size | ( | void | ) | const [inline] |
void wiselib::list_static< OsModel_P, Value_P, ListSize_P >::splice | ( | iterator | position, |
list_type & | l | ||
) | [inline] |
transfer elements of list l to position
void wiselib::list_static< OsModel_P, Value_P, ListSize_P >::unique | ( | ) | [inline] |
removes every but the first occurrence in a consecutive set of elements with the same value
const list_size_t wiselib::list_static< OsModel_P, Value_P, ListSize_P >::LIST_SIZE = (ListSize_P < 1) ? 1 : ListSize_P [static] |