Visual Computing Library
|
This iterator is used to iterate over a container of pointers to elements and return the index of the element. More...
#include <vclib/mesh/iterators/components/pointer_from_index_iterator.h>
Public Types | |
using | difference_type = ptrdiff_t |
using | value_type = VT * |
using | reference = VT * |
using | pointer = VT ** |
using | iterator_category = std::random_access_iterator_tag |
Private Types | |
using | VT = std::conditional_t< CNST, const ElementType, ElementType > |
using | PE = std::conditional_t< CNST, const ParentElement *, ParentElement * > |
Private Attributes | |
Iterator | mIt |
PE | parentElement = nullptr |
Static Private Attributes | |
static constexpr uint | ELEM_ID = ElementType::ELEMENT_ID |
This iterator is used to iterate over a container of pointers to elements and return the index of the element.
Iterator | The iterator type of the container of pointers to elements. |
|
inline |
Constructor for the begin iterator - ParentElement required.
it | |
pElem |
|
inline |
Constructor for the end iterator, ParentElement not required.
it |
|
inline |
Constructor from a non-const iterator.
oi |