385 void info(std::ostream &)
const;
389 void toVector(std::vector<size_t> &)
const;
390 void toVector(std::vector<long> &)
const;
391 void toVector(std::vector<double> &)
const;
392 void toVector(std::vector<std::string> &)
const;
394 void toValarray(std::valarray<double> &)
const;
396 bool valid(
void)
const;
423 if (
size() == 0 || n == 0)
427 long rot = n %
static_cast<long>(
size());
428 rot = (rot < 0) ? rot+
size() : rot;
437 #ifdef TokenArray_H_DEBUG
438 #undef TokenArray_H_DEBUG
Token * end() const
Definition: tarrayobj.h:70
bool shrink(void)
Definition: tarrayobj.cc:185
void push_back_dont_clone(Token &t)
Definition: tokenarray.h:252
void info(std::ostream &) const
TokenArray(const TokenArray &a)
Definition: tokenarray.h:103
bool shrink(void)
Reduce allocated space such that size()==capacity().
Definition: tokenarray.h:206
size_t capacity(void) const
Definition: tarrayobj.h:80
void replace_move(size_t i, size_t n, TokenArray &a)
Definition: tokenarray.h:298
const Name d("d")
Specific to Izhikevich 2003.
Definition: nest_names.h:83
void push_back(Datum *d)
Definition: tokenarray.h:241
void resize(size_t s, const Token &t=Token())
Resizes the container to size s.
Definition: tokenarray.h:230
void assign_move(size_t i, Token &t)
Definition: tokenarray.h:257
void pop_back(void)
Definition: tokenarray.h:315
void append_move(TokenArray &a)
Definition: tokenarray.h:307
void rotate(Token *t1, Token *t2, Token *t3)
Definition: tokenarray.h:182
virtual ~TokenArray()
Definition: tokenarray.h:118
bool reserve(size_t n)
Reserve space such that after the call the new capacity is n.
Definition: tokenarray.h:216
bool operator==(const TokenArray &a) const
Definition: tokenarray.h:375
bool reserve(size_t)
Definition: tarrayobj.cc:197
void erase(size_t, size_t)
Definition: tarrayobj.cc:261
bool valid(void) const
Definition: tokenarray.cc:225
void clear(void)
Definition: tokenarray.h:320
Definition: tokenstack.h:38
void push_back(const Token &t)
Definition: tokenarray.h:236
Token * end() const
Return pointer to next to last element.
Definition: tokenarray.h:134
Definition: tarrayobj.h:37
bool index_is_valid(long i) const
Definition: tokenarray.h:177
Definition: tokenarray.h:62
const Name a("a")
Specific to Brette & Gerstner 2005 (aeif_cond-*)
Definition: nest_names.h:41
void toVector(std::vector< size_t > &) const
Fill vectors with homogenous integer and double arrays.
Definition: tokenarray.cc:137
void reduce(size_t i, size_t n)
Definition: tokenarray.h:353
void push_back_move(Token &t)
Definition: tarrayobj.h:147
friend class TokenArrayObj
Definition: tokenarray.h:89
void reverse()
Definition: tokenarray.h:406
void insert_move(size_t, TokenArrayObj &)
Definition: tarrayobj.cc:347
const Token & operator[](size_t i) const
Definition: tokenarray.h:167
void swap(sparsegroup< T, GROUP_SIZE, Alloc > &x, sparsegroup< T, GROUP_SIZE, Alloc > &y)
Definition: sparsetable.h:1348
Exception classes.
Definition: tokenarray.h:400
void push_back_move(Token &t)
Definition: tokenarray.h:247
size_t size(void) const
Definition: tarrayobj.h:75
const TokenArray & operator=(const TokenArray &)
Definition: tokenarray.cc:30
void erase(void)
Definition: tokenarray.h:325
void insert_move(size_t i, TokenArray &a)
Definition: tokenarray.h:274
bool empty(void) const
Definition: tokenarray.h:380
void erase(Token *from, Token *to)
Definition: tokenarray.h:332
void swap(TokenArray &a)
Definition: tokenarray.h:364
void rotate(Token *, Token *, Token *)
Definition: tarrayobj.cc:208
TokenArray(size_t n, const Token &t=Token(), size_t alloc=128)
Definition: tokenarray.h:100
void assign(const TokenArrayObj &, size_t, size_t)
Definition: tarrayobj.cc:398
Token * begin() const
Definition: tarrayobj.h:65
void toValarray(std::valarray< long > &) const
Definition: tokenarray.cc:189
void append_move(TokenArrayObj &)
Definition: tarrayobj.cc:515
void erase(size_t i, size_t n)
Definition: tokenarray.h:343
size_t size(void) const
Return number of elements in the array.
Definition: tokenarray.h:142
const Token & get(long i) const
Definition: tarrayobj.h:90
std::ostream & operator<<(std::ostream &, const TokenArray &)
Definition: tokenarray.cc:235
void assign_move(Token *tp, Token &t)
Definition: tarrayobj.h:182
const Name b("b")
Specific to Brette & Gerstner 2005 (aeif_cond-*)
Definition: nest_names.h:58
bool index_is_valid(long i) const
Definition: tarrayobj.h:96
void replace_move(size_t, size_t, TokenArrayObj &)
Definition: tarrayobj.cc:440
unsigned int remove_reference()
Definition: tarrayobj.h:114
void insert_move(size_t i, Token &t)
Definition: tokenarray.h:291
const Name n("n")
Number of synaptic release sites (int >=0) (Tsodyks2_connection)
Definition: nest_names.h:202
void assign_move(TokenArray &a, size_t i, size_t n)
Definition: tokenarray.h:262
bool clone(void)
Definition: tokenarray.h:67
unsigned int add_reference()
Definition: tarrayobj.h:126
Token * begin() const
Return pointer to the first element.
Definition: tokenarray.h:126
TokenArrayObj * data
Definition: tokenarray.h:65
size_t capacity(void) const
Return maximal number of elements that fit into the container.
Definition: tokenarray.h:150
A type-independent container for C++-types.
Definition: token.h:68
void resize(size_t, size_t, const Token &=Token())
Definition: tarrayobj.cc:112
TokenArray(void)
Definition: tokenarray.h:96
void pop_back(void)
Definition: tarrayobj.h:187
const double e
Definition: numerics.cpp:62
bool detach(void)
Definition: tokenarray.h:78
unsigned int references(void)
Definition: tokenarray.h:221
void push_back(const Token &t)
Definition: tarrayobj.h:140
void reduce(Token *, Token *)
Definition: tarrayobj.cc:281
unsigned int references(void)
Definition: tarrayobj.h:109
TokenArray(const TokenArrayObj &a)
Definition: tokenarray.h:107
Token & operator[](size_t i)
Definition: tokenarray.h:161