70 const std::string&
toString(
void)
const;
104 return (table.find(s) != table.end());
115 static void list(std::ostream &);
116 static void info(std::ostream &);
static HandleTable_ & handleTableInstance_()
Definition: name.h:144
handle_t handle_
Handle for the name represented by the Name object.
Definition: name.h:137
std::deque< std::string > HandleTable_
Definition: name.h:125
bool operator!=(const Name &n) const
Definition: name.h:85
static void list(std::ostream &)
Definition: name.cc:88
static size_t capacity()
Definition: name.cc:29
static size_t num_handles()
Definition: name.cc:34
Name(const std::string &s)
Definition: name.h:64
bool operator==(const Name &n) const
Definition: name.h:80
Represent strings by ints to facilitate fast comparison.
Definition: name.h:53
static bool lookup(const std::string &s)
Definition: name.h:101
std::map< std::string, handle_t > HandleMap_
Datatype for map from strings to handles.
Definition: name.h:124
static void info(std::ostream &)
Definition: name.cc:104
const Name std("std")
Miscellaneous parameters.
Definition: nest_names.h:265
Name()
Create Name without value.
Definition: name.h:61
const std::string & toString(void) const
Return string represented by Name.
Definition: name.cc:63
bool operator<(const Name &n) const
Non-alphabetic ordering of names.
Definition: name.h:96
static void list_handles(std::ostream &)
Definition: name.cc:40
Name(const char s[])
Definition: name.h:63
std::ostream & operator<<(std::ostream &, const Name &)
Definition: name.cc:110
handle_t toIndex(void) const
Return table index for Name object.
Definition: name.h:75
const Name n("n")
Number of synaptic release sites (int >=0) (Tsodyks2_connection)
Definition: nest_names.h:202
handle_t insert(const std::string &)
Definition: name.cc:68
void print_handle(std::ostream &) const
Definition: name.cc:55
unsigned int handle_t
Definition: name.h:57
Name(const Name &n)
Definition: name.h:65
static HandleMap_ & handleMapInstance_()
Function returning a reference to the single map instance.
Definition: name.h:154