VLC 4.0.0-dev
|
Wrapper around any type matching with vlc_list, exposing C++ iterator operations. More...
#include <vlc_list.hpp>
Public Types | |
using | list_type = list_base< NodeType, ListType, Iterator, ConstIterator > |
using | iterator = Iterator |
using | const_iterator = ConstIterator |
using | reverse_iterator = std::conditional_t< is_reverse, list_reverse_iterator< NodeType, ListType >, list_iterator_base< NodeType, ListType > > |
using | const_reverse_iterator = std::conditional_t< is_reverse, list_reverse_iterator< NodeType, const ListType >, list_iterator_base< NodeType, const ListType > > |
using | reverse_list = list_base< NodeType, ListType, reverse_iterator, const_reverse_iterator > |
Public Member Functions | |
list_base (ListType &list, vlc_list NodeType::*node_ptr) | |
reverse_list | as_reverse () |
iterator | begin () const |
iterator | end () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | crend () const |
bool | empty () const |
Protected Attributes | |
ListType & | _list |
vlc_list NodeType::* | _node_ptr |
Static Protected Attributes | |
static bool constexpr | is_reverse |
Friends | |
bool | operator== (const list_type &a, const list_type &b) |
bool | operator!= (const list_type &a, const list_type &b) |
Wrapper around any type matching with vlc_list, exposing C++ iterator operations.
Users should use the vlc::list and vlc::const_list types instead, and initialize them from the vlc::from function.
NodeType | the type of each node from the list |
ListType | either vlc_list or const vlc_list |
Iterator | the iterator type returned by vlc::list_base::begin() and vlc::list_base::end() |
ConstIterator | the iterator type returned by vlc::list_base::cbegin() and vlc::list_base::cend() |
using vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::const_iterator = ConstIterator |
using vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::const_reverse_iterator = std::conditional_t<is_reverse, list_reverse_iterator<NodeType, const ListType>, list_iterator_base<NodeType, const ListType> > |
using vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::iterator = Iterator |
using vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::list_type = list_base<NodeType, ListType, Iterator, ConstIterator> |
using vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::reverse_iterator = std::conditional_t<is_reverse, list_reverse_iterator<NodeType, ListType>, list_iterator_base<NodeType, ListType> > |
using vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::reverse_list = list_base<NodeType, ListType, reverse_iterator, const_reverse_iterator> |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
protected |
Referenced by vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::as_reverse(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::begin(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::cbegin(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::cend(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::crbegin(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::crend(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::empty(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::end(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::rbegin(), and vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::rend().
|
protected |
Referenced by vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::as_reverse(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::begin(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::cbegin(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::cend(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::crbegin(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::crend(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::end(), vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::rbegin(), and vlc::list_base< NodeType, ListType, Iterator, ConstIterator >::rend().
|
staticconstexprprotected |