9 #ifndef CUBBYFLOW_ARRAY_ACCESSOR1_H 10 #define CUBBYFLOW_ARRAY_ACCESSOR1_H 44 void Reset(
size_t size, T*
const data);
50 const T& At(
size_t i)
const;
53 T*
const begin()
const;
68 T*
const data()
const;
89 template <
typename Callback>
90 void ForEach(Callback func)
const;
108 template <
typename Callback>
109 void ForEachIndex(Callback func)
const;
132 template <
typename Callback>
133 void ParallelForEach(Callback func);
153 template <
typename Callback>
154 void ParallelForEachIndex(Callback func)
const;
157 T& operator[](
size_t i);
160 const T& operator[](
size_t i)
const;
184 template <
typename T>
201 const T& At(
size_t i)
const;
204 const T*
const begin()
const;
207 const T*
const end()
const;
213 const T*
const data()
const;
231 template <
typename Callback>
232 void ForEach(Callback func)
const;
250 template <
typename Callback>
251 void ForEachIndex(Callback func)
const;
271 template <
typename Callback>
272 void ParallelForEachIndex(Callback func)
const;
275 const T& operator[](
size_t i)
const;
1-D read-only array accessor class.
Definition: ArrayAccessor1.h:185
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
1-D array accessor class.
Definition: ArrayAccessor1.h:28