35 template<
unsigned Dim>
38 for (
unsigned d=0; d<
Dim; ++d)
47 template<
unsigned Dim>
54 for (
unsigned d=0; d<
Dim; ++d) {
67 template<
class T,
unsigned Dim>
79 for (
unsigned d=0; d<
Dim; ++d) {
80 Strides[d] = n*counted[d].stride();
81 Current += n*(counted[d].first() - domalloc[d].first());
82 n *= domalloc[d].length();
89 template<
class T,
unsigned Dim >
97 for (
unsigned d=0; d<
Dim; ++d) {
109 template<
class T,
unsigned Dim>
117 for (
unsigned d=0; d<
Dim; ++d) {
138 template<
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);
189 template<
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 & put(const T &val)
and give any other recipients of the Program a copy of this License along with the Program You may charge a fee for the physical act of transferring a and you may at your option offer warranty protection in exchange for a fee You may modify your copy or copies of the Program or any portion of thus forming a work based on the and copy and distribute such modifications or work under the terms of Section provided that you also meet all of these that in whole or in part contains or is derived from the Program or any part to be licensed as a whole at no charge to all third parties under the terms of this License c If the modified program normally reads commands interactively when you must cause when started running for such interactive use in the most ordinary to print or display an announcement including an appropriate copyright notice and a notice that there is no and telling the user how to view a copy of this and can be reasonably considered independent and separate works in then this and its do not apply to those sections when you distribute them as separate works But when you distribute the same sections as part of a whole which is a work based on the the distribution of the whole must be on the terms of this whose permissions for other licensees extend to the entire whole
Message & getMessage(Message &)
Message & setDelete(const bool c)
Message & get(const T &cval)
Message & putmsg(void *, int, int=0)
Message & setCopy(const bool c)
Message & putMessage(Message &, bool makecopy=true)