A forward iterator over array indices with filtering IteratorT can be either IndexIter or ValueIndexIter (or some custom index iterator) FilterT should be a struct or class with a valid() method than can be evaluated per index Here's a simple filter example that only accepts even indices:
More...
#include <IndexIterator.h>
|
class | ValueIndexIter |
| A forward iterator over array indices from a value iterator (such as ValueOnCIter) More...
|
|
template<typename IteratorT, typename FilterT>
class openvdb::v5_2::points::IndexIter< IteratorT, FilterT >
A forward iterator over array indices with filtering IteratorT can be either IndexIter or ValueIndexIter (or some custom index iterator) FilterT should be a struct or class with a valid() method than can be evaluated per index Here's a simple filter example that only accepts even indices:
struct EvenIndexFilter { bool valid(const Index32 offset) const { return (offset % 2) == 0; } };
◆ IndexIter() [1/2]
IndexIter |
( |
const IteratorT & |
iterator, |
|
|
const FilterT & |
filter |
|
) |
| |
|
inline |
◆ IndexIter() [2/2]
◆ end()
◆ filter()
const FilterT& filter |
( |
| ) |
const |
|
inline |
◆ getCoord() [1/2]
Return the coordinates of the item to which the value iterator is pointing.
◆ getCoord() [2/2]
void getCoord |
( |
Coord & |
xyz | ) |
const |
|
inline |
Return in xyz the coordinates of the item to which the value iterator is pointing.
◆ increment()
◆ isValueOn()
Return true
if the value iterator is pointing to an active value.
◆ next()
Advance to the next (valid) item.
◆ operator bool()
Return true
if this iterator is not yet exhausted.
◆ operator!=()
bool operator!= |
( |
const IndexIter< IteratorT, FilterT > & |
other | ) |
const |
|
inline |
◆ operator*() [1/2]
Returns the item to which this iterator is currently pointing.
◆ operator*() [2/2]
◆ operator++() [1/2]
Advance to the next (valid) item (prefix).
◆ operator++() [2/2]
Advance to the next (valid) item (postfix).
◆ operator=()
◆ operator==()
bool operator== |
( |
const IndexIter< IteratorT, FilterT > & |
other | ) |
const |
|
inline |
◆ reset()
Reset the begining and end of the iterator.
◆ test()
The documentation for this class was generated from the following file: