33 #define ARRAY_ALLOC_SIZE 64
193 void erase(
size_t ,
size_t);
202 void reduce(
size_t,
size_t);
232 void info(std::ostream &)
const;
237 bool valid(
void)
const;
unsigned int alloc_block_size
Definition: tarrayobj.h:43
Token * end() const
Definition: tarrayobj.h:70
bool shrink(void)
Definition: tarrayobj.cc:185
Token * p
Definition: tarrayobj.h:40
size_t capacity(void) const
Definition: tarrayobj.h:80
void info(std::ostream &) const
Definition: tarrayobj.cc:562
void push_back_by_pointer(Datum *rhs)
Push back a datum pointer.
Definition: tarrayobj.h:174
virtual ~TokenArrayObj()
Definition: tarrayobj.cc:60
void insert(size_t i, const Token &t)
Definition: tarrayobj.h:205
bool reserve(size_t)
Definition: tarrayobj.cc:197
void push_back_by_ref(const Token &t)
Push back a reference.
Definition: tarrayobj.h:161
void erase(size_t, size_t)
Definition: tarrayobj.cc:261
Token * begin_of_free_storage
Definition: tarrayobj.h:41
Definition: tarrayobj.h:37
const Token & operator[](size_t i) const
Definition: tarrayobj.h:87
bool operator==(const TokenArrayObj &) const
Definition: tarrayobj.cc:536
void push_back_move(Token &t)
Definition: tarrayobj.h:147
Token & operator[](size_t i)
Definition: tarrayobj.h:85
static size_t getallocations(void)
Definition: tarrayobj.h:234
unsigned int refs_
Definition: tarrayobj.h:44
void insert_move(size_t, TokenArrayObj &)
Definition: tarrayobj.cc:347
size_t size(void) const
Definition: tarrayobj.h:75
void clear(void)
Definition: tarrayobj.cc:269
void rotate(Token *, Token *, Token *)
Definition: tarrayobj.cc:208
void assign(const TokenArrayObj &, size_t, size_t)
Definition: tarrayobj.cc:398
Token * begin() const
Definition: tarrayobj.h:65
void append_move(TokenArrayObj &)
Definition: tarrayobj.cc:515
std::ostream & operator<<(std::ostream &, const TokenArrayObj &)
Definition: tarrayobj.cc:604
Token * end_of_free_storage
Definition: tarrayobj.h:42
const TokenArrayObj & operator=(const TokenArrayObj &)
Definition: tarrayobj.cc:125
void assign_move(Token *tp, Token &t)
Definition: tarrayobj.h:182
void insert(size_t, size_t=1, const Token &=Token())
Definition: tarrayobj.cc:323
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
const Name n("n")
Number of synaptic release sites (int >=0) (Tsodyks2_connection)
Definition: nest_names.h:202
void reserve_token(size_t n)
Definition: tarrayobj.h:134
static size_t allocations
Definition: tarrayobj.h:50
unsigned int add_reference()
Definition: tarrayobj.h:126
A type-independent container for C++-types.
Definition: token.h:68
TokenArrayObj(void)
Definition: tarrayobj.h:53
void resize(size_t, size_t, const Token &=Token())
Definition: tarrayobj.cc:112
void allocate(size_t, size_t, size_t, const Token &=Token())
Definition: tarrayobj.cc:66
bool empty(void) const
Definition: tarrayobj.h:227
void pop_back(void)
Definition: tarrayobj.h:187
void push_back(const Token &t)
Definition: tarrayobj.h:140
bool valid(void) const
Definition: tarrayobj.cc:571
void reduce(Token *, Token *)
Definition: tarrayobj.cc:281
unsigned int references(void)
Definition: tarrayobj.h:109
void erase(Token *tp)
Definition: tarrayobj.h:195