Stores the node ID of a presynaptic neuron and the number of local targets, along with a flag, whether this entry has been processed yet. More...
#include <source.h>
Public Member Functions | |
| Source () | |
| Source (const size_t node_id, const bool primary) | |
| size_t | get_node_id () const |
| Returns this Source's node ID. | |
| void | set_processed (const bool processed) |
| bool | is_processed () const |
| void | set_primary (const bool primary) |
| Sets whether Source is primary. | |
| bool | is_primary () const |
| Returns whether Source is primary. | |
| void | disable () |
| Disables Source. | |
| bool | is_disabled () const |
| Returns whether Source is disabled. | |
Private Attributes | |
| size_t | node_id_: NUM_BITS_NODE_ID |
| node ID of source | |
| bool | processed_: 1 |
| whether this target has already been moved to the MPI buffer | |
| bool | primary_: 1 |
| source of primary connection | |
| bool | disabled_: 1 |
| connection has been disabled | |
Friends | |
| bool | operator< (const Source &lhs, const Source &rhs) |
| bool | operator> (const Source &lhs, const Source &rhs) |
| bool | operator== (const Source &lhs, const Source &rhs) |
Stores the node ID of a presynaptic neuron and the number of local targets, along with a flag, whether this entry has been processed yet.
Used in SourceTable.
|
inline |
|
inlineexplicit |
References nest::MAX_NODE_ID.
|
inline |
Returns this Source's node ID.
References node_id_.
Referenced by nest::SourceTable::find_first_source(), nest::SourceTable::get_next_target_data(), nest::SourceTable::next_entry_has_same_source_(), nest::SourceTable::populate_target_data_fields_(), and nest::SourceTable::previous_entry_has_same_source_().
|
inline |
Returns whether Source is disabled.
References disabled_.
Referenced by nest::SourceTable::find_first_source().
|
inline |
Returns whether Source is primary.
References primary_.
Referenced by nest::SourceTable::populate_target_data_fields_().
|
inline |
References processed_.
|
inline |
|
inline |
References processed_.
Referenced by nest::SourceTable::get_next_target_data().
|
private |
connection has been disabled
Referenced by disable(), and is_disabled().
|
private |
node ID of source
Referenced by get_node_id().
|
private |
source of primary connection
Referenced by is_primary(), and set_primary().
|
private |
whether this target has already been moved to the MPI buffer
Referenced by is_processed(), and set_processed().