NEST
2.6.0,not_revisioned_source_dir@0
|
Combined storage of GID and offset information for off-grid spikes. More...
#include <communicator.h>
Public Types | |
typedef uint_t | gid_external_type |
We defined this type explicitly, so that the assert function below always tests the correct type. More... | |
Public Member Functions | |
OffGridSpike () | |
OffGridSpike (gid_external_type gidv, double_t offsetv) | |
uint_t | get_gid () const |
void | set_gid (gid_external_type gid) |
double_t | get_offset () const |
OffGridSpike () | |
OffGridSpike (uint_t gidv, double_t offsetv) | |
uint_t | get_gid () const |
void | set_gid (uint_t gid) |
double_t | get_offset () const |
Static Private Member Functions | |
static void | assert_datatype_compatibility () |
This function asserts that doubles can hold GIDs without loss. More... | |
Private Attributes | |
double_t | gid_ |
GID of neuron that spiked. More... | |
double_t | offset_ |
offset of spike from grid More... | |
Friends | |
class | Communicator |
Combined storage of GID and offset information for off-grid spikes.
double_t
internally. This is done so that the user-defined MPI type MPI_OFFGRID_SPIKE, which we use to communicate off-grid spikes, is homogeneous. Otherwise, OpenMPI spends extreme amounts of time on packing and unpacking the data, see #458. We defined this type explicitly, so that the assert function below always tests the correct type.
|
inline |
|
inline |
|
inline |
|
inlinestaticprivate |
This function asserts that doubles can hold GIDs without loss.
References assert(), get_gid(), and nest::names::max.
Referenced by nest::Communicator::init().
|
inline |
References gid_.
Referenced by assert_datatype_compatibility().
|
inline |
References gid_.
|
friend |
|
private |
GID of neuron that spiked.
Referenced by get_gid(), nest::Communicator::init(), and set_gid().
|
private |
offset of spike from grid
Referenced by get_offset(), and nest::Communicator::init().