109 Token(
unsigned long);
113 Token(
const std::vector<double>&);
114 Token(
const std::valarray<double>&);
115 Token(
const std::vector<long>&);
116 Token(
const std::vector<size_t>&);
117 Token(
const std::ostream&);
118 Token(
const std::istream&);
119 operator Datum*()
const;
120 operator size_t()
const;
121 operator long()
const;
122 operator double()
const;
123 operator float()
const;
124 operator bool()
const;
125 operator std::string()
const;
236 return (
p!=NULL) ?
p->
equals(&d) :
false;
276 const std::type_info&
type(
void)
const
325 return !( *
this == t );
328 void info(std::ostream &)
const;
330 void pprint(std::ostream &)
const;
350 template <
typename DatumType>
353 return dynamic_cast<DatumType*
>(
p);
Token(Datum *p_s=NULL)
Definition: token.h:98
Datum * p
Definition: token.h:74
void clear(void)
Definition: token.h:227
std::ostream & operator<<(std::ostream &, const Token &)
Definition: token.cc:169
void detach()
If the contained datum has more than one reference, clone it, so it can be modified.
Definition: token.h:133
size_t numReferences() const
Definition: datum.h:103
bool operator==(const Token &t) const
Definition: token.h:313
const Name d("d")
Specific to Izhikevich 2003.
Definition: nest_names.h:83
void swap(Token &c)
Definition: token.h:222
void move(Token &c)
Definition: token.h:142
bool accessed_
Flag for access control.
Definition: token.h:79
Token(const Datum &d)
Definition: token.h:102
bool valid() const
Definition: token.h:257
Token(const Token &c_s)
Definition: token.h:90
virtual Datum * get_ptr()
Returns a reference counted pointer to the datum, or a new pointer, if the type does not support refe...
Definition: datum.h:52
void init_by_ref(const Token &rhs)
Initialize the token with a reference.
Definition: token.h:184
Represent strings by ints to facilitate fast comparison.
Definition: name.h:53
Definition: tarrayobj.h:37
virtual bool equals(const Datum *d) const
Definition: datum.h:141
void info(std::ostream &) const
Definition: token.cc:145
bool is_a() const
Check whether Token contains a Datum of a given type.
Definition: token.h:351
Definition: tokenarray.h:62
void addReference() const
Definition: datum.h:91
Datum * operator->() const
Definition: token.h:262
Datum & operator*() const
Definition: token.h:269
unsigned long Index
Definition: token.h:372
bool empty(void) const
Definition: token.h:239
void removeReference()
Definition: datum.h:96
void swap(sparsegroup< T, GROUP_SIZE, Alloc > &x, sparsegroup< T, GROUP_SIZE, Alloc > &y)
Definition: sparsetable.h:1348
bool contains(const Datum &d) const
Definition: token.h:234
void assign_by_pointer(Datum *rhs)
Definition: token.h:212
void init_move(Token &rhs)
Initialize the token by moving a datum from another token.
Definition: token.h:158
bool accessed() const
Check for access.
Definition: token.h:343
bool matches_as_string(const Token &rhs) const
Returns true if token equals rhs as string.
Definition: token.cc:178
bool operator!(void) const
Definition: token.h:244
Token & operator=(Datum *p_s)
Definition: token.h:300
void pprint(std::ostream &) const
Definition: token.cc:161
virtual Datum * clone(void) const =0
Virtual copy constructor.
void init_by_pointer(Datum *rhs)
Initialize the token with a datum pointer.
Definition: token.h:196
void assign_by_ref(const Token &rhs)
Definition: token.h:201
bool operator!=(const Token &t) const
Definition: token.h:323
Token & operator=(const Token &c_s)
Definition: token.h:282
const std::type_info & type(void) const
Definition: token.h:276
A type-independent container for C++-types.
Definition: token.h:68
const Name c("c")
Specific to Izhikevich 2003.
Definition: nest_names.h:62
~Token()
Definition: token.h:83
void clear_access_flag()
Clear accessed flag.
Definition: token.h:333
Datum * datum(void) const
Definition: token.h:249
void set_access_flag() const
Definition: token.h:334
void init_by_copy(const Token &rhs)
Initialize the token by moving a datum from another token.
Definition: token.h:171