NEST
2.6.0,not_revisioned_source_dir@0
|
#include <tarrayobj.h>
Public Member Functions | |
TokenArrayObj (void) | |
TokenArrayObj (size_t, const Token &=Token(), size_t=0) | |
TokenArrayObj (const TokenArrayObj &) | |
virtual | ~TokenArrayObj () |
Token * | begin () const |
Token * | end () const |
size_t | size (void) const |
size_t | capacity (void) const |
Token & | operator[] (size_t i) |
const Token & | operator[] (size_t i) const |
const Token & | get (long i) const |
bool | index_is_valid (long i) const |
void | rotate (Token *, Token *, Token *) |
bool | shrink (void) |
bool | reserve (size_t) |
unsigned int | references (void) |
unsigned int | remove_reference () |
unsigned int | add_reference () |
void | resize (size_t, size_t, const Token &=Token()) |
void | resize (size_t, const Token &=Token()) |
void | reserve_token (size_t n) |
void | push_back (const Token &t) |
void | push_back_move (Token &t) |
void | push_back_by_ref (const Token &t) |
Push back a reference. More... | |
void | push_back_by_pointer (Datum *rhs) |
Push back a datum pointer. More... | |
void | assign_move (Token *tp, Token &t) |
void | pop_back (void) |
void | erase (size_t, size_t) |
void | erase (Token *, Token *) |
void | erase (Token *tp) |
void | reduce (Token *, Token *) |
void | reduce (size_t, size_t) |
void | insert (size_t, size_t=1, const Token &=Token()) |
void | insert (size_t i, const Token &t) |
void | insert_move (size_t, TokenArrayObj &) |
void | insert_move (size_t, Token &) |
void | assign_move (TokenArrayObj &, size_t, size_t) |
void | assign (const TokenArrayObj &, size_t, size_t) |
void | replace_move (size_t, size_t, TokenArrayObj &) |
void | append_move (TokenArrayObj &) |
void | clear (void) |
const TokenArrayObj & | operator= (const TokenArrayObj &) |
bool | operator== (const TokenArrayObj &) const |
bool | empty (void) const |
void | info (std::ostream &) const |
bool | valid (void) const |
Static Public Member Functions | |
static size_t | getallocations (void) |
Private Member Functions | |
void | allocate (size_t, size_t, size_t, const Token &=Token()) |
Private Attributes | |
Token * | p |
Token * | begin_of_free_storage |
Token * | end_of_free_storage |
unsigned int | alloc_block_size |
unsigned int | refs_ |
Static Private Attributes | |
static size_t | allocations =0 |
|
inline |
References nest::names::a, and resize().
TokenArrayObj::TokenArrayObj | ( | const TokenArrayObj & | a | ) |
References alloc_block_size, begin_of_free_storage, p, resize(), and size().
|
virtual |
References p.
|
inline |
References refs_.
Referenced by TokenArray::operator=(), and TokenArray::TokenArray().
|
private |
References alloc_block_size, allocations, assert(), begin_of_free_storage, end_of_free_storage, nest::names::h, p, and size().
void TokenArrayObj::append_move | ( | TokenArrayObj & | a | ) |
References assert(), begin_of_free_storage, end(), end_of_free_storage, p, reserve(), and size().
Referenced by TokenArray::append_move().
void TokenArrayObj::assign | ( | const TokenArrayObj & | a, |
size_t | i, | ||
size_t | n | ||
) |
References begin(), begin_of_free_storage, end(), nest::names::n, p, and reserve().
Referenced by TokenArray::assign_move().
Referenced by TokenArray::assign_move().
void TokenArrayObj::assign_move | ( | TokenArrayObj & | a, |
size_t | i, | ||
size_t | n | ||
) |
References begin(), begin_of_free_storage, end(), nest::names::n, p, and reserve().
|
inline |
References p.
Referenced by assign(), assign_move(), TokenArray::assign_move(), TokenArray::begin(), TokenStack::clear(), TokenArray::erase(), operator<<(), operator=(), operator==(), reduce(), replace_move(), and TokenArray::rotate().
|
inline |
References end_of_free_storage, and p.
Referenced by TokenArray::capacity(), operator=(), push_back(), push_back_by_pointer(), push_back_by_ref(), push_back_move(), reserve(), reserve_token(), shrink(), and TokenStack::size().
void TokenArrayObj::clear | ( | void | ) |
References alloc_block_size, begin_of_free_storage, end_of_free_storage, and p.
Referenced by pop_back().
|
inline |
References size().
Referenced by __pyx_pf_12pynestkernel_10NESTEngine_10pop(), and Parser::operator()().
|
inline |
References begin_of_free_storage.
Referenced by append_move(), assign(), assign_move(), TokenStack::clear(), TokenArray::end(), erase(), insert_move(), operator<<(), operator=(), operator==(), TokenStack::pick(), TokenStack::pop(), TokenStack::pop_move(), reduce(), replace_move(), TokenStack::roll(), TokenStack::swap(), and TokenStack::top().
void TokenArrayObj::erase | ( | size_t | i, |
size_t | n | ||
) |
Referenced by TokenStack::clear(), erase(), TokenArray::erase(), and TokenStack::pop().
References begin_of_free_storage, end(), and Datum::removeReference().
|
inline |
References p.
Referenced by TokenArray::get().
|
inlinestatic |
References allocations.
Referenced by Allocations_aFunction::execute().
|
inline |
References begin_of_free_storage, and p.
Referenced by TokenArray::index_is_valid().
void TokenArrayObj::info | ( | std::ostream & | out | ) | const |
References alloc_block_size, begin_of_free_storage, end_of_free_storage, and p.
References begin_of_free_storage, nest::names::n, p, reserve(), and size().
Referenced by insert().
void TokenArrayObj::insert_move | ( | size_t | i, |
TokenArrayObj & | a | ||
) |
References assert(), begin_of_free_storage, end(), end_of_free_storage, p, reserve(), and size().
Referenced by TokenArray::insert_move().
void TokenArrayObj::insert_move | ( | size_t | i, |
Token & | t | ||
) |
References assert(), begin_of_free_storage, end_of_free_storage, p, Token::p, reserve(), and size().
const TokenArrayObj & TokenArrayObj::operator= | ( | const TokenArrayObj & | a | ) |
References alloc_block_size, assert(), begin(), begin_of_free_storage, capacity(), end(), end_of_free_storage, p, resize(), and size().
bool TokenArrayObj::operator== | ( | const TokenArrayObj & | a | ) | const |
|
inline |
References begin_of_free_storage, and clear().
Referenced by TokenStack::pop(), TokenArray::pop_back(), and TokenStack::pop_move().
|
inline |
References alloc_block_size, begin_of_free_storage, capacity(), reserve(), and size().
Referenced by TokenStack::push(), and TokenArray::push_back().
|
inline |
Push back a datum pointer.
This function assumes that enough space on the stack has been reserved. This function expects a valid datum pointer and increases the reference count of the datum.
References alloc_block_size, begin_of_free_storage, capacity(), reserve(), and size().
Referenced by TokenStack::push_by_pointer().
|
inline |
Push back a reference.
This function expects that enough space on the stack has been reserved and that the token points to a valid datum object.
References alloc_block_size, begin_of_free_storage, capacity(), reserve(), and size().
Referenced by TokenStack::push_by_ref().
|
inline |
References alloc_block_size, begin_of_free_storage, capacity(), reserve(), and size().
Referenced by TokenArray::push_back(), TokenArray::push_back_dont_clone(), TokenArray::push_back_move(), and TokenStack::push_move().
References assert(), begin(), begin_of_free_storage, end(), and p.
Referenced by reduce(), and TokenArray::reduce().
|
inline |
References refs_.
Referenced by TokenArray::clone(), TokenArray::detach(), and TokenArray::references().
|
inline |
References refs_.
Referenced by TokenArray::clone(), TokenArray::detach(), TokenArray::operator=(), and TokenArray::~TokenArray().
void TokenArrayObj::replace_move | ( | size_t | i, |
size_t | n, | ||
TokenArrayObj & | a | ||
) |
References assert(), begin(), begin_of_free_storage, nest::names::d, end(), nest::names::n, p, Datum::removeReference(), reserve(), and size().
Referenced by TokenArray::replace_move().
bool TokenArrayObj::reserve | ( | size_t | new_capacity | ) |
References alloc_block_size, allocate(), capacity(), and size().
Referenced by append_move(), assign(), assign_move(), insert(), insert_move(), push_back(), push_back_by_pointer(), push_back_by_ref(), push_back_move(), replace_move(), TokenArray::reserve(), and reserve_token().
|
inline |
References capacity(), reserve(), and size().
Referenced by SLIArrayModule::ArrayloadFunction::execute().
References alloc_block_size, allocate(), and size().
Referenced by operator=(), resize(), TokenArray::resize(), and TokenArrayObj().
References alloc_block_size, and resize().
Referenced by TokenStack::roll(), and TokenArray::rotate().
bool TokenArrayObj::shrink | ( | void | ) |
References alloc_block_size, allocate(), capacity(), and size().
Referenced by TokenArray::shrink().
|
inline |
References begin_of_free_storage, and p.
Referenced by allocate(), append_move(), empty(), erase(), insert(), insert_move(), TokenStack::load(), operator=(), operator==(), push_back(), push_back_by_pointer(), push_back_by_ref(), push_back_move(), reduce(), replace_move(), reserve(), reserve_token(), resize(), shrink(), TokenArray::size(), and TokenArrayObj().
bool TokenArrayObj::valid | ( | void | ) | const |
References begin_of_free_storage, end_of_free_storage, and p.
Referenced by TokenArray::valid().
|
private |
Referenced by allocate(), clear(), info(), operator=(), push_back(), push_back_by_pointer(), push_back_by_ref(), push_back_move(), reserve(), resize(), shrink(), and TokenArrayObj().
|
staticprivate |
Referenced by allocate(), and getallocations().
|
private |
Referenced by allocate(), append_move(), assign(), assign_move(), clear(), end(), erase(), index_is_valid(), info(), insert(), insert_move(), operator=(), pop_back(), push_back(), push_back_by_pointer(), push_back_by_ref(), push_back_move(), reduce(), replace_move(), size(), TokenArrayObj(), and valid().
|
private |
Referenced by allocate(), append_move(), capacity(), clear(), info(), insert_move(), operator=(), and valid().
|
private |
Referenced by allocate(), append_move(), assign(), assign_move(), begin(), capacity(), clear(), erase(), get(), index_is_valid(), info(), insert(), insert_move(), operator=(), operator==(), operator[](), reduce(), replace_move(), size(), TokenArrayObj(), valid(), and ~TokenArrayObj().
|
private |
Referenced by add_reference(), references(), and remove_reference().