123 virtual void print(std::ostream & )
const =0;
124 virtual void pprint(std::ostream &)
const =0;
126 virtual void list(std::ostream &o, std::string prefix,
int l)
const
146 virtual void info(std::ostream &)
const;
165 template<SLIType * slt >
181 template<SLIType * slt >
void set_executable()
Definition: datum.h:113
virtual ~Datum()
Definition: datum.h:88
size_t numReferences() const
Definition: datum.h:103
Datum()
Definition: datum.h:68
const Name d("d")
Specific to Izhikevich 2003.
Definition: nest_names.h:83
void unset_executable()
Definition: datum.h:118
virtual void pprint(std::ostream &) const =0
Definition: slifunction.h:35
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
Represent strings by ints to facilitate fast comparison.
Definition: name.h:53
const TypedDatum< slt > & operator=(const TypedDatum< slt > &)
Definition: datum.h:183
void execute(SLIInterpreter *i)
Definition: datum.h:158
virtual bool equals(const Datum *d) const
Definition: datum.h:141
void addReference() const
Definition: datum.h:91
virtual void list(std::ostream &o, std::string prefix, int l) const
Definition: datum.h:126
void removeReference()
Definition: datum.h:96
virtual void input_form(std::ostream &o) const
Definition: datum.h:136
bool isoftype(SLIType const &t) const
Definition: datum.h:153
bool executable_
Definition: datum.h:65
Definition: interpret.h:69
Datum(const SLIType *t)
Definition: datum.h:76
const Name & gettypename(void) const
Definition: datum.h:148
virtual void info(std::ostream &) const
Definition: datum.cc:34
const SLIType * type
Pointer to type object.
Definition: datum.h:61
const Name & gettypename(void) const
Definition: slitype.h:66
virtual void print(std::ostream &) const =0
virtual Datum * clone(void) const =0
Virtual copy constructor.
const SLIFunction * action
Shortcut to the SLIType default action.
Definition: datum.h:62
Datum(const Datum &d)
Definition: datum.h:83
A type-independent container for C++-types.
Definition: token.h:68
unsigned int reference_count_
Definition: datum.h:64
TypedDatum(const TypedDatum< slt > &d)
Definition: datum.h:176
TypedDatum(void)
Definition: datum.h:169
virtual void execute(SLIInterpreter *) const =0
bool is_executable() const
Definition: datum.h:108