23 #ifndef ITERATORDATUM_H
24 #define ITERATORDATUM_H
85 { this->
d.
start = start_s; this->
d.
stop = stop_s; this->
d.
di = di_s; this->
d.
pos = start_s;}
108 return this->
d.
stop + 1;
118 return (this->
d.
stop - this->d.start)/this->
d.
di + 1;
123 return this->
d == i.
d;
127 static void *
operator new(
size_t size)
130 return ::operator
new(
size);
134 static void operator delete(
void *
p,
size_t size)
140 ::operator
delete(
p);
148 void pprint(std::ostream &out)
const { out << this->
d; }
size_t size_of(void) const
Definition: allocator.h:128
void incr(void)
Definition: iteratordatum.h:91
Datum * clone(void) const
Virtual copy constructor.
Definition: iteratordatum.h:73
Definition: genericdatum.h:35
IteratorDatum(long start_s, long stop_s, long di_s)
Definition: iteratordatum.h:84
long pos
Definition: iteratordatum.h:49
long pos(void)
Definition: iteratordatum.h:111
void pprint(std::ostream &out) const
Definition: iteratordatum.h:148
Definition: iteratordatum.h:43
long stop
Definition: iteratordatum.h:47
std::ostream & operator<<(std::ostream &, const IteratorState &)
Definition: iteratordatum.cc:35
IteratorState d
Definition: genericdatum.h:44
long start
Definition: iteratordatum.h:46
virtual ~IteratorDatum()
Definition: iteratordatum.h:87
long di
Definition: iteratordatum.h:48
long begin(void)
Definition: iteratordatum.h:101
long end(void)
Definition: iteratordatum.h:106
void print(std::ostream &out) const
Definition: iteratordatum.h:146
Definition: iteratordatum.h:67
Definition: interpret.h:69
const Name & gettypename(void) const
Definition: datum.h:148
void * alloc(void)
allocate one element
Definition: allocator.h:137
bool operator==(const IteratorDatum &i) const
Definition: iteratordatum.h:121
IteratorDatum()
Definition: iteratordatum.h:83
void free(void *p)
put element back into the pool
Definition: allocator.h:155
long size(void)
Definition: iteratordatum.h:116
bool operator==(const IteratorState &i) const
Definition: iteratordatum.h:51
IteratorDatum(const IteratorDatum &d_s)
Definition: iteratordatum.h:86
void decr(void)
Definition: iteratordatum.h:96
pool is a specialized allocator class for many identical small objects.
Definition: allocator.h:50
const Name p("p")
current release probability (Tsodyks2_connection)
Definition: nest_names.h:218
static sli::pool memory
Definition: iteratordatum.h:70