NEST main@f146f75
Loading...
Searching...
No Matches
nest::Source Class Reference

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
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)

Detailed Description

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.

Constructor & Destructor Documentation

◆ Source() [1/2]

nest::Source::Source ( )
inline

References disabled_, node_id_, primary_, and processed_.

Referenced by operator<, operator==, and operator>.

Here is the caller graph for this function:

◆ Source() [2/2]

nest::Source::Source ( const size_t node_id,
const bool primary )
inlineexplicit

References disabled_, is_primary(), nest::MAX_NODE_ID, node_id_, primary_, and processed_.

Here is the call graph for this function:

Member Function Documentation

◆ disable()

void nest::Source::disable ( )
inline

Disables Source.

References disabled_.

◆ get_node_id()

size_t nest::Source::get_node_id ( ) const
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_().

Here is the caller graph for this function:

◆ is_disabled()

bool nest::Source::is_disabled ( ) const
inline

Returns whether Source is disabled.

References disabled_.

Referenced by nest::SourceTable::find_first_source().

Here is the caller graph for this function:

◆ is_primary()

bool nest::Source::is_primary ( ) const
inline

Returns whether Source is primary.

References primary_.

Referenced by nest::SourceTable::populate_target_data_fields_(), and Source().

Here is the caller graph for this function:

◆ is_processed()

bool nest::Source::is_processed ( ) const
inline

References processed_.

◆ set_primary()

void nest::Source::set_primary ( const bool primary)
inline

Sets whether Source is primary.

References primary_.

◆ set_processed()

void nest::Source::set_processed ( const bool processed)
inline

References processed_.

Referenced by nest::SourceTable::get_next_target_data().

Here is the caller graph for this function:

◆ operator<

bool operator< ( const Source & lhs,
const Source & rhs )
friend

References node_id_, and Source().

◆ operator==

bool operator== ( const Source & lhs,
const Source & rhs )
friend

References node_id_, and Source().

◆ operator>

bool operator> ( const Source & lhs,
const Source & rhs )
friend

References nest::operator<(), and Source().

Member Data Documentation

◆ disabled_

bool nest::Source::disabled_
private

connection has been disabled

Referenced by disable(), is_disabled(), Source(), and Source().

◆ node_id_

size_t nest::Source::node_id_
private

node ID of source

Referenced by get_node_id(), operator<, operator==, Source(), and Source().

◆ primary_

bool nest::Source::primary_
private

source of primary connection

Referenced by is_primary(), set_primary(), Source(), and Source().

◆ processed_

bool nest::Source::processed_
private

whether this target has already been moved to the MPI buffer

Referenced by is_processed(), set_processed(), Source(), and Source().


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