avcpp
2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
Universal wrapper for one directional linked list elements. More...
#include <linkedlistutils.h>
Classes | |
class | base_iterator |
Public Types | |
typedef T | element_type |
typedef W | element_wrapper_type |
typedef N | next_element_type |
typedef C | wrapper_cast_type |
typedef R | wrapper_reset_type |
typedef D | deleter_type |
typedef I | iterator_category |
using | iterator = base_iterator< false > |
using | const_iterator = base_iterator< true > |
Public Member Functions | |
LinkedListWrapper () | |
LinkedListWrapper (element_type *begin) | |
~LinkedListWrapper () | |
bool | isValid () |
element_type * | raw () |
const element_type * | raw () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
size_t | count () const |
Log(N) complexity! More... | |
element_wrapper_type | at (size_t idx) const |
Log(N) complexity. More... | |
Protected Attributes | |
wrapper_cast_type | m_wrapperCast |
element_type * | m_begin |
element_type * | m_end |
Universal wrapper for one directional linked list elements.
Next element taked with functor that described by N template parameter.
T - type of wrapped elements W - type of element wrapper, must have ctor from T pointer, method reset(T * ptr) to reset current pointer N - functor that return next element in list C - functor that used to cast wrapper to its raw value R - functor that used to reset pointer value in wrapper to new one D - deleter, by default NullDeleter that does not free any resources I - Iterator cathegory (???)
using av::LinkedListWrapper< T, W, N, C, R, D, I >::const_iterator = base_iterator<true> |
typedef D av::LinkedListWrapper< T, W, N, C, R, D, I >::deleter_type |
typedef T av::LinkedListWrapper< T, W, N, C, R, D, I >::element_type |
typedef W av::LinkedListWrapper< T, W, N, C, R, D, I >::element_wrapper_type |
using av::LinkedListWrapper< T, W, N, C, R, D, I >::iterator = base_iterator<false> |
typedef I av::LinkedListWrapper< T, W, N, C, R, D, I >::iterator_category |
typedef N av::LinkedListWrapper< T, W, N, C, R, D, I >::next_element_type |
typedef C av::LinkedListWrapper< T, W, N, C, R, D, I >::wrapper_cast_type |
typedef R av::LinkedListWrapper< T, W, N, C, R, D, I >::wrapper_reset_type |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
Log(N) complexity.
idx |
|
inline |
|
inline |
|
inline |
Log(N) complexity!
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |