60 r_Bytes tlen,
unsigned int step = 1);
86 inline void *
getData(
unsigned int *order);
145#include "raslib/miterd.icc"
The spatial domain of an MDD is represented by an object of class r_Minterval.
Definition minterval.hh:226
r_MiterDirect is similar to r_Miter, but allows stepping by more than one cell in each direction,...
Definition miterd.hh:52
void print_pos(std::ostream &str) const
print the position
r_MiterDirect & iterateUserOrder(const unsigned int *order, const int *step)
see the other incrementUserOrder method for more details
r_Range getExtent(r_Dimension d) const
returns extent in dimension d
void reset(void)
reset the iterator (pos to low and data to baseAddress + offset)
bool done
Definition miterd.hh:109
r_MiterDirect(const void *data, const r_Minterval &total, const r_Minterval &iter, r_Bytes tlen, unsigned int step=1)
constructor getting the data, the total domain, the iteration domain, the base type length and the nu...
const void * baseAddress
Definition miterd.hh:101
r_Range getDimBaseStep(r_Dimension d) const
returns number of bytes to step in dimension d when pos changes by 1.
r_MiterDirect & iterateUserOrder(const r_Dimension *order, const unsigned int *step)
increment the iterator in a user-specified order.
void posChanged(void)
notify that the position was changed and internal variables need to be recalculated
void * getData(unsigned int *order)
r_Range getDimStep(r_Dimension d) const
returns number of bytes to step in dimension d in one iteration
r_MiterDirect & operator++(void)
increment the iterator in the default order, i.e. last dimension first
const void * data
Data concerning the iteration position and domain.
Definition miterd.hh:128
r_Range low
Definition miterd.hh:130
r_Range high
Definition miterd.hh:131
r_Range pos
Definition miterd.hh:129
r_miter_direct_data()=default
~r_miter_direct_data()=default
std::int64_t r_Range
for axis indexing, e.g.
Definition mddtypes.hh:53
std::uint32_t r_Dimension
number of dimensions in r_Point and r_Minterval.
Definition mddtypes.hh:56
size_t r_Bytes
number of bytes in an tile or mdd or type.
Definition mddtypes.hh:43
std::ostream & operator<<(std::ostream &str, const r_MiterDirect &iter)
overloaded stream operator
std::uint32_t r_ULong
Definition odmgtypes.hh:38