Lunchbox
1.13.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
|
An iterator for LFVector. More...
#include <lfVectorIterator.h>
Public Member Functions | |
LFVectorIterator (V *vector, size_t i) | |
Construct an iterator for a given vector and position. More... | |
template<class U , class W > | |
LFVectorIterator (const LFVectorIterator< U, W > &from) | |
Copy-construct an iterator. More... | |
T & | operator* () const |
Dereference the element at the current position. More... | |
T * | operator-> () const |
Address the element at the current position. More... | |
T & | operator[] (const size_t &n) const |
Address the element at the given position. More... | |
Public Member Functions inherited from lunchbox::IndexIterator< LFVectorIterator< V, T >, V, T > | |
IndexIterator (V *container, const size_t i) | |
Construct an iterator for a given container and position. More... | |
IndexIterator (const LFVectorIterator< V, T > &from) | |
Copy-construct an iterator. More... | |
IndexIterator (const IndexIterator< U, V, W > &from) | |
Copy-construct an iterator. More... | |
LFVectorIterator< V, T > & | operator= (const IndexIterator &rhs) |
Assign the container and position from another iterator. More... | |
LFVectorIterator< V, T > & | operator= (const IndexIterator< LFVectorIterator< V, T >, U, W > &rhs) |
Assign the container and position from another iterator. More... | |
LFVectorIterator< V, T > & | operator++ () |
Increment the iterator position. More... | |
LFVectorIterator< V, T > | operator++ (int) |
Increment the iterator position. More... | |
LFVectorIterator< V, T > & | operator-- () |
Decrement the iterator position. More... | |
LFVectorIterator< V, T > | operator-- (int) |
Decrement the iterator position. More... | |
LFVectorIterator< V, T > | operator+ (const size_t &n) const |
Increment the iterator position by a given amount. More... | |
LFVectorIterator< V, T > & | operator+= (const size_t &n) |
Increment the iterator position by a given amount. More... | |
LFVectorIterator< V, T > | operator- (const size_t &n) const |
Decrement the iterator position by a given amount. More... | |
ssize_t | operator- (const LFVectorIterator< V, T > &n) const |
Compute the distance between this and another iterator. More... | |
LFVectorIterator< V, T > & | operator-= (const size_t &n) |
Decrement the iterator position by a given amount. More... | |
bool | operator== (const LFVectorIterator< V, T > &rhs) const |
bool | operator!= (const LFVectorIterator< V, T > &rhs) const |
bool | operator< (const LFVectorIterator< V, T > &rhs) const |
bool | operator> (const LFVectorIterator< V, T > &rhs) const |
bool | operator<= (const LFVectorIterator< V, T > &rhs) const |
bool | operator>= (const LFVectorIterator< V, T > &rhs) const |
size_t | getPosition () const |
Friends | |
template<class , int32_t > | |
class | LFVector |
Additional Inherited Members | |
Protected Attributes inherited from lunchbox::IndexIterator< LFVectorIterator< V, T >, V, T > | |
V * | container_ |
size_t | i_ |
An iterator for LFVector.
Definition at line 36 of file lfVectorIterator.h.
|
inline |
Construct an iterator for a given vector and position.
Definition at line 42 of file lfVectorIterator.h.
|
inline |
|
inline |
Dereference the element at the current position.
Definition at line 49 of file lfVectorIterator.h.
|
inline |
Address the element at the current position.
Definition at line 52 of file lfVectorIterator.h.
|
inline |
Address the element at the given position.
Definition at line 55 of file lfVectorIterator.h.