NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Private Member Functions | List of all members
LiteralDatum Class Reference

#include <namedatum.h>

Inheritance diagram for LiteralDatum:
AggregateDatum< Name,&SLIInterpreter::Literaltype > TypedDatum< slt > Name Datum

Public Member Functions

 LiteralDatum (const Name &n)
 
 LiteralDatum (const LiteralDatum &n)
 
 ~LiteralDatum ()
 
void pprint (std::ostream &) const
 
- Public Member Functions inherited from AggregateDatum< Name,&SLIInterpreter::Literaltype >
 AggregateDatum ()
 
 AggregateDatum (const AggregateDatum< Name, slt > &d)
 
 AggregateDatum (const Name &c)
 
virtual ~AggregateDatum ()
 
bool equals (const Datum *dat) const
 
virtual void print (std::ostream &out) const
 
virtual void list (std::ostream &out, std::string prefix, int l) const
 
virtual void input_form (std::ostream &out) const
 
virtual void info (std::ostream &out) const
 
- Public Member Functions inherited from TypedDatum< slt >
 TypedDatum (void)
 
- Public Member Functions inherited from Datum
virtual ~Datum ()
 
void addReference () const
 
void removeReference ()
 
size_t numReferences () const
 
bool is_executable () const
 
void set_executable ()
 
void unset_executable ()
 
const Namegettypename (void) const
 
bool isoftype (SLIType const &t) const
 
void execute (SLIInterpreter *i)
 
- Public Member Functions inherited from Name
 Name ()
 Create Name without value. More...
 
 Name (const char s[])
 
 Name (const std::string &s)
 
 Name (const Name &n)
 
const std::string & toString (void) const
 Return string represented by Name. More...
 
handle_t toIndex (void) const
 Return table index for Name object. More...
 
bool operator== (const Name &n) const
 
bool operator!= (const Name &n) const
 
bool operator< (const Name &n) const
 Non-alphabetic ordering of names. More...
 
void print_handle (std::ostream &) const
 

Private Member Functions

Datumclone (void) const
 Virtual copy constructor. More...
 
Datumget_ptr ()
 Returns a reference counted pointer to the datum, or a new pointer, if the type does not support reference counting. More...
 

Additional Inherited Members

- Public Types inherited from Name
typedef unsigned int handle_t
 
- Static Public Member Functions inherited from AggregateDatum< Name,&SLIInterpreter::Literaltype >
static void * operator new (size_t size)
 
static void operator delete (void *p, size_t size)
 
- Static Public Member Functions inherited from Name
static bool lookup (const std::string &s)
 
static size_t capacity ()
 
static size_t num_handles ()
 
static void list_handles (std::ostream &)
 
static void list (std::ostream &)
 
static void info (std::ostream &)
 
- Protected Member Functions inherited from TypedDatum< slt >
 TypedDatum (const TypedDatum< slt > &d)
 
const TypedDatum< slt > & operator= (const TypedDatum< slt > &)
 
- Protected Member Functions inherited from Datum
 Datum ()
 
 Datum (const SLIType *t)
 
 Datum (const Datum &d)
 
- Protected Attributes inherited from Datum
const SLITypetype
 Pointer to type object. More...
 
const SLIFunctionaction
 Shortcut to the SLIType default action. More...
 
unsigned int reference_count_
 
bool executable_
 
- Static Protected Attributes inherited from AggregateDatum< Name,&SLIInterpreter::Literaltype >
static sli::pool memory
 

Constructor & Destructor Documentation

LiteralDatum::LiteralDatum ( const Name n)
inline

References Datum::set_executable().

Referenced by clone().

LiteralDatum::LiteralDatum ( const LiteralDatum n)
inline
LiteralDatum::~LiteralDatum ( )
inline

Member Function Documentation

Datum* LiteralDatum::clone ( void  ) const
inlineprivatevirtual

Virtual copy constructor.

Use this function to lazily copy a datum.

Reimplemented from AggregateDatum< Name,&SLIInterpreter::Literaltype >.

References LiteralDatum().

Datum* LiteralDatum::get_ptr ( )
inlineprivatevirtual

Returns a reference counted pointer to the datum, or a new pointer, if the type does not support reference counting.

The prefix const indicates that the pointer should be trated as const because changes affect all other references as well.

Reimplemented from Datum.

References Datum::addReference().

void LiteralDatum::pprint ( std::ostream &  out) const
virtual

The documentation for this class was generated from the following files: