23 #ifndef FUNCTIONDATUM_H
24 #define FUNCTIONDATUM_H
61 std::cerr <<
"Warning: Definition of FunctionDatum ("<<
name<<
") changed!!\n";
83 void print(std::ostream& o)
const
85 o <<
'-' <<
name <<
'-';
93 void info(std::ostream &out)
const
95 out <<
"FunctionDatum::info\n";
96 out <<
"name = " <<
name << std::endl;
117 static void *
operator new(
size_t size)
120 return ::operator
new(size);
124 static void operator delete(
void *
p,
size_t size)
130 ::operator
delete(
p);
void set_executable()
Definition: datum.h:113
void pprint(std::ostream &o) const
Definition: functiondatum.h:88
static sli::pool memory
Definition: functiondatum.h:44
FunctionDatum(Name const &n, SLIFunction const *f)
Definition: functiondatum.h:72
Definition: slifunction.h:35
Datum * get_ptr()
Returns a reference counted pointer to the datum, or a new pointer, if the type does not support refe...
Definition: functiondatum.h:53
Represent strings by ints to facilitate fast comparison.
Definition: name.h:53
void backtrace(SLIInterpreter *, int) const
Definition: functiondatum.cc:27
void print(std::ostream &o) const
Definition: functiondatum.h:83
void addReference() const
Definition: datum.h:91
const Name & getname(void) const
Definition: functiondatum.h:110
void info(std::ostream &out) const
Definition: functiondatum.h:93
Definition: interpret.h:69
void * alloc(void)
allocate one element
Definition: allocator.h:137
Definition: functiondatum.h:42
Datum * clone(void) const
Virtual copy constructor.
Definition: functiondatum.h:48
SLIFunction const & operator=(SLIFunction const &f)
Definition: functiondatum.h:59
void free(void *p)
put element back into the pool
Definition: allocator.h:155
FunctionDatum(FunctionDatum const &fd)
Definition: functiondatum.h:68
const Name n("n")
Number of synaptic release sites (int >=0) (Tsodyks2_connection)
Definition: nest_names.h:202
const SLIFunction * action
Shortcut to the SLIType default action.
Definition: datum.h:62
pool is a specialized allocator class for many identical small objects.
Definition: allocator.h:50
Name name
Definition: functiondatum.h:46
const Name p("p")
current release probability (Tsodyks2_connection)
Definition: nest_names.h:218
bool equals(Datum const *dat) const
Definition: functiondatum.h:99