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

#include <namedatum.h>

Inheritance diagram for NameDatum:
AggregateDatum< Name,&SLIInterpreter::Nametype > TypedDatum< slt > Name Datum

Public Member Functions

 NameDatum (const Name &n)
 
 NameDatum (const NameDatum &n)
 
 ~NameDatum ()
 
- Public Member Functions inherited from AggregateDatum< Name,&SLIInterpreter::Nametype >
 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 pprint (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::Nametype >
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::Nametype >
static sli::pool memory
 

Constructor & Destructor Documentation

NameDatum::NameDatum ( const Name n)
inline

References Datum::set_executable().

Referenced by clone().

NameDatum::NameDatum ( const NameDatum n)
inline
NameDatum::~NameDatum ( )
inline

Member Function Documentation

Datum* NameDatum::clone ( void  ) const
inlineprivatevirtual

Virtual copy constructor.

Use this function to lazily copy a datum.

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

References NameDatum().

Datum* NameDatum::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().


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