|
Visual Computing Library
devel
|
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 | iterator_category = std::random_access_iterator_tag |
| using | pointer = VT ** |
| using | reference = VT * |
| using | value_type = VT * |
Private Types | |
| using | PE = std::conditional_t< CNST, const ParentElement *, ParentElement * > |
| using | VT = std::conditional_t< CNST, const ElementType, ElementType > |
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 |