23 #ifndef SPARSE_NODE_ARRAY_H
24 #define SPARSE_NODE_ARRAY_H
157 return nodes_.max_size();
163 assert(idx < nodes_.size());
164 return nodes_[idx].node_;
size_t index
Unsigned long type for enumerations.
Definition: nest.h:109
index local_max_gid_
largest local GID
Definition: sparse_node_array.h:130
size_t size() const
Return size of container.
Definition: sparse_node_array.h:138
void add_local_node(Node &)
Add single local node.
Definition: sparse_node_array.cpp:49
std::map< long, size_t > get_step_ctr() const
Definition: sparse_node_array.h:174
Provide sparse representation of local nodes.
Definition: sparse_node_array.h:52
void clear()
Clear the array.
Definition: sparse_node_array.h:144
std::vector< NodeEntry_ > nodes_
stores local node information
Definition: sparse_node_array.h:127
index get_max_gid() const
Return largest GID in global network.
Definition: sparse_node_array.h:168
void reserve(size_t)
Reserve space for given number of elements.
Definition: sparse_node_array.cpp:44
size_t max_size() const
Return maximum size of underlying vector.
Definition: sparse_node_array.h:155
SparseNodeArray()
Create empty spare node array.
Definition: sparse_node_array.cpp:34
index max_gid_
largest GID in network
Definition: sparse_node_array.h:128
index local_min_gid_
smallest local GID
Definition: sparse_node_array.h:129
Node * get_node_by_index(size_t) const
Lookup node based on index into container.
Definition: sparse_node_array.h:161
Definition: sparse_node_array.h:56
Default types used by the NEST kernel.
Base class for all NEST network objects.
Definition: node.h:96
NodeEntry_(Node &, index)
Definition: sparse_node_array.cpp:28
double gid_idx_scale_
interpolation factor
Definition: sparse_node_array.h:131
Node * get_node_by_gid(index) const
Lookup node based on GID.
Definition: sparse_node_array.cpp:88
std::map< long, size_t > step_ctr_
for analysis, measure misses
Definition: sparse_node_array.h:132
void add_remote_node(index)
Register non-local node.
Definition: sparse_node_array.cpp:82
Node * node_
Definition: sparse_node_array.h:58
index gid_
store gid locally for faster searching
Definition: sparse_node_array.h:59