38 for (
unsigned d=0; d<
Dim; ++d)
54 for (
unsigned d=0; d<
Dim; ++d) {
67template<
class T,
unsigned Dim>
79 for (
unsigned d=0; d<
Dim; ++d) {
81 Current +=
n*(counted[d].first() - domalloc[d].first());
82 n *= domalloc[d].length();
89template<
class T,
unsigned Dim >
97 for (
unsigned d=0; d<
Dim; ++d) {
109template<
class T,
unsigned Dim>
117 for (
unsigned d=0; d<
Dim; ++d) {
138template<
class T,
unsigned Dim>
147 for (
n=1, i=0; i <
Dim; ++i) {
158 if (!makecopy && whole()) {
165 m.
putmsg((
void *)Current,
sizeof(
T),
n);
169 T* cpydata = (
T*) malloc(
sizeof(
T)*
n);
171 T* cpyend = cpydata +
n;
173 for (; cpy != cpyend; ++cpy, ++bi)
179 m.
putmsg((
void *)cpydata,
sizeof(
T),
n);
189template<
class T,
unsigned Dim>
198 "Iterator already has data in BrickIterator::getMessage!!");
202 for (
n=1, i=0; i <
Dim; ++i) {
219 Current =
static_cast<T *
>(m.
item(0).
data());
Message & getMessage(Message &)
Message & putMessage(Message &, bool makecopy=true)
Message & putmsg(void *, int, int=0)
Message & setCopy(const bool c)
Message & put(const T &val)
Message & setDelete(const bool c)
Message & get(const T &cval)