57 const Token& t = d->lookup2(n);
62 return getValue<FT>(t);
83 const Token& t = d->lookup2(n);
99 x =
static_cast<double>(
id->get());
104 if(min< x and x < max)
108 if (min <= x and x < max)
112 if (min <= x and x <= max)
139 const Token& t = d->lookup2(n);
155 x =
static_cast<double>(
id->get());
160 if(min< x and x < max)
164 if (min <= x and x < max)
168 if (min <= x and x <= max)
183 template<
typename FT,
class D>
186 Token t = newToken2<FT,D>(value);
187 d->insert_move(n, t);
195 template<
typename FT>
199 d->insert_move(n, t);
206 template<
typename FT,
typename VT>
218 const Token& t = d->lookup(n);
223 value = getValue<FT>(t);
232 template<
typename FT,
typename VT,
class C>
238 (obj.*setfunc)(getValue<FT>(d, n));
265 template<
typename PropT>
269 Token t = d->lookup(propname);
275 Token prop_token(prop);
276 arrd->push_back_dont_clone(prop_token);
287 Token t = d->lookup(propname);
293 (*arrd)->insert((*arrd)->end(), prop.begin(), prop.end());
305 Token t = d->lookup(propname);
311 (*arrd)->insert((*arrd)->end(), prop.begin(), prop.end());
Exception to be thrown if a given SLI array has the wrong size.
Definition: sliexceptions.h:189
double get_double_in_range(const DictionaryDatum &d, Name const n, double min, double max, int mode=2)
Get the value of an existing dictionary entry and check that it is in a specified range...
Definition: dictutils.h:79
const Name d("d")
Specific to Izhikevich 2003.
Definition: nest_names.h:83
void initialize_property_doublevector(DictionaryDatum &d, Name propname)
Create a property of type DoubleVectorDatum in the dictionary, if it does not already exist...
Definition: dictutils.cc:35
Exception to be thrown if a given SLI type does not match the expected type.
Definition: sliexceptions.h:147
void initialize_property_array(DictionaryDatum &d, Name propname)
Create a property of type ArrayDatum in the dictionary, if it does not already exist.
Definition: dictutils.cc:25
Represent strings by ints to facilitate fast comparison.
Definition: name.h:53
void accumulate_property(DictionaryDatum &, Name, const std::vector< double > &)
Add values of a vector to a property DoubleVectorDatum in the dictionary. ...
Definition: dictutils.cc:82
void append_property(DictionaryDatum &d, Name propname, const PropT &prop)
Append a value to a property ArrayDatum in the dictionary.
Definition: dictutils.h:267
bool empty(void) const
Definition: token.h:239
const D & get(void) const
Definition: genericdatum.h:61
void def(DictionaryDatum &d, Name const n, FT const &value)
Define a new dictionary entry from a fundamental type.
Definition: dictutils.h:196
bool updateValue(DictionaryDatum const &d, Name const n, VT &value)
Update a variable from a dictionary entry if it exists, skip call if it doesn't.
Definition: dictutils.h:207
const Name x("x")
current scaling factor of the synaptic weight [0...1] (Tsodyks2_connection)
Definition: nest_names.h:356
const Name min("min")
Definition: topology_names.h:74
long get_long_in_range(const DictionaryDatum &d, Name const n, long min, long max, int mode=2)
Get the value of an existing dictionary entry and check that it is in a specified range...
Definition: dictutils.h:135
Definition: numericdatum.h:40
const Name max("max")
Definition: topology_names.h:75
void initialize_property_intvector(DictionaryDatum &d, Name propname)
Create a property of type IntVectorDatum in the dictionary, if it does not already exist...
Definition: dictutils.cc:45
const Name n("n")
Number of synaptic release sites (int >=0) (Tsodyks2_connection)
Definition: nest_names.h:202
void def2(DictionaryDatum &d, Name const n, FT const &value)
Define a new dictionary entry from a fundamental type.
Definition: dictutils.h:184
A type-independent container for C++-types.
Definition: token.h:68
void provide_property(DictionaryDatum &, Name, const std::vector< double > &)
Provide a value to a property DoubleVectorDatum in the dictionary.
Definition: dictutils.cc:55
FT getValue(const DictionaryDatum &d, Name const n)
Get the value of an existing dictionary entry.
Definition: dictutils.h:53
void updateValue2(DictionaryDatum const &d, Name const n, C &obj, void(C::*setfunc)(VT))
Call a member function of an object, passing the value of an dictionary entry if it exists...
Definition: dictutils.h:233
Datum * datum(void) const
Definition: token.h:249