Iterator over handles in this vector, which skips deleted elements. More...
#include <StableVector.hpp>
Public Member Functions | |
| bool | isAtEnd () const |
| bool | operator!= (const StableVectorIterator &other) const |
| HandleT | operator* () const |
| StableVectorIterator & | operator++ () |
| StableVectorIterator & | operator= (const StableVectorIterator &other) |
| bool | operator== (const StableVectorIterator &other) const |
| StableVectorIterator (const vector< boost::optional< ElemT >> *deleted, bool startAtEnd=false) | |
Private Attributes | |
| const vector< boost::optional< ElemT > > * | m_elements |
| Reference to the deleted marker array this iterator belongs to. More... | |
| size_t | m_pos |
| Current position in the vector. More... | |
Iterator over handles in this vector, which skips deleted elements.
Important: This is NOT a fail fast iterator. If the vector is changed while using an instance of this iterator the behavior is undefined!
Definition at line 61 of file StableVector.hpp.
| lvr2::StableVectorIterator< HandleT, ElemT >::StableVectorIterator | ( | const vector< boost::optional< ElemT >> * | deleted, |
| bool | startAtEnd = false |
||
| ) |
| bool lvr2::StableVectorIterator< HandleT, ElemT >::isAtEnd | ( | ) | const |
| bool lvr2::StableVectorIterator< HandleT, ElemT >::operator!= | ( | const StableVectorIterator< HandleT, ElemT > & | other | ) | const |
| HandleT lvr2::StableVectorIterator< HandleT, ElemT >::operator* | ( | ) | const |
| StableVectorIterator& lvr2::StableVectorIterator< HandleT, ElemT >::operator++ | ( | ) |
| StableVectorIterator& lvr2::StableVectorIterator< HandleT, ElemT >::operator= | ( | const StableVectorIterator< HandleT, ElemT > & | other | ) |
| bool lvr2::StableVectorIterator< HandleT, ElemT >::operator== | ( | const StableVectorIterator< HandleT, ElemT > & | other | ) | const |
|
private |
Reference to the deleted marker array this iterator belongs to.
Definition at line 65 of file StableVector.hpp.
|
private |
Current position in the vector.
Definition at line 68 of file StableVector.hpp.