9 #ifndef CUBBYFLOW_ARRAY_ACCESSOR2_H 10 #define CUBBYFLOW_ARRAY_ACCESSOR2_H 55 void Reset(
const Size2& size, T*
const data);
58 void Reset(
size_t width,
size_t height, T*
const data);
64 const T& At(
size_t i)
const;
70 const T& At(
const Point2UI& pt)
const;
73 T& At(
size_t i,
size_t j);
76 const T& At(
size_t i,
size_t j)
const;
79 T*
const begin()
const;
97 size_t Height()
const;
100 T*
const data()
const;
133 template <
typename Callback>
134 void ForEach(Callback func)
const;
164 template <
typename Callback>
165 void ForEachIndex(Callback func)
const;
187 template <
typename Callback>
188 void ParallelForEach(Callback func);
208 template <
typename Callback>
209 void ParallelForEachIndex(Callback func)
const;
212 size_t Index(
const Point2UI& pt)
const;
215 size_t Index(
size_t i,
size_t j)
const;
218 T& operator[](
size_t i);
221 const T& operator[](
size_t i)
const;
227 const T& operator()(
const Point2UI& pt)
const;
230 T& operator()(
size_t i,
size_t j);
233 const T& operator()(
size_t i,
size_t j)
const;
260 template <
typename T>
276 size_t width,
size_t height,
const T*
const data);
285 const T& At(
size_t i)
const;
288 const T& At(
const Point2UI& pt)
const;
291 const T& At(
size_t i,
size_t j)
const;
294 const T*
const begin()
const;
297 const T*
const end()
const;
303 size_t Width()
const;
306 size_t Height()
const;
309 const T*
const data()
const;
339 template <
typename Callback>
340 void ForEach(Callback func)
const;
370 template <
typename Callback>
371 void ForEachIndex(Callback func)
const;
391 template <
typename Callback>
392 void ParallelForEachIndex(Callback func)
const;
395 size_t Index(
const Point2UI& pt)
const;
398 size_t Index(
size_t i,
size_t j)
const;
401 const T& operator[](
size_t i)
const;
404 const T& operator()(
const Point2UI& pt)
const;
407 const T& operator()(
size_t i,
size_t j)
const;
2-D read-only array accessor class.
Definition: ArrayAccessor2.h:261
2-D point class.
Definition: Point2.h:25
2-D array accessor class.
Definition: ArrayAccessor2.h:31
Generic N-dimensional array accessor class interface.
Definition: ArrayAccessor.h:31
Definition: pybind11Utils.h:24
Generic N-dimensional read-only array accessor class interface.
Definition: ArrayAccessor.h:52