check legal size More...
#include <target.h>
Public Member Functions | |
| Target () | |
| Target (const Target &target) | |
| Target (const size_t tid, const size_t rank, const synindex syn_id, const size_t lcid) | |
| Target & | operator= (const Target &) |
| void | set_lcid (const size_t lcid) |
| Set local connection id. | |
| size_t | get_lcid () const |
| Return local connection id. | |
| void | set_rank (const size_t rank) |
| Set rank. | |
| size_t | get_rank () const |
| Return rank. | |
| void | set_tid (const size_t tid) |
| Set thread id. | |
| size_t | get_tid () const |
| Return thread id. | |
| void | set_syn_id (const synindex syn_id) |
| Set the synapse-type id. | |
| synindex | get_syn_id () const |
| Return synapse-type id. | |
| void | set_status (enum_status_target_id status) |
| Set the status of the target identifier: processed or unprocessed. | |
| enum_status_target_id | get_status () const |
| Get the status of the target identifier: processed or unprocessed. | |
| bool | is_processed () const |
| Return the status od the target identifier: processed or unprocessed. | |
| double | get_offset () const |
| Return offset. | |
| void | mark_for_removal () |
| Set the status of the target identifier to processed. | |
Private Types | |
| using | bits_for_processed_flag = StaticAssert< NUM_BITS_PROCESSED_FLAG==1U >::success |
| using | position_of_processed_flag = StaticAssert< BITPOS_PROCESSED_FLAG==63U >::success |
Private Attributes | |
| uint64_t | remote_target_id_ |
Static Private Attributes | |
| static constexpr uint8_t | BITPOS_LCID = 0U |
| static constexpr uint8_t | BITPOS_RANK = NUM_BITS_LCID |
| static constexpr uint8_t | BITPOS_TID = BITPOS_RANK + NUM_BITS_RANK |
| static constexpr uint8_t | BITPOS_SYN_ID = BITPOS_TID + NUM_BITS_TID |
| static constexpr uint8_t | BITPOS_PROCESSED_FLAG = BITPOS_SYN_ID + NUM_BITS_SYN_ID |
| static constexpr uint64_t | MASK_LCID = generate_bit_mask( NUM_BITS_LCID, BITPOS_LCID ) |
| static constexpr uint64_t | MASK_RANK = generate_bit_mask( NUM_BITS_RANK, BITPOS_RANK ) |
| static constexpr uint64_t | MASK_TID = generate_bit_mask( NUM_BITS_TID, BITPOS_TID ) |
| static constexpr uint64_t | MASK_SYN_ID = generate_bit_mask( NUM_BITS_SYN_ID, BITPOS_SYN_ID ) |
| static constexpr uint64_t | MASK_PROCESSED_FLAG = generate_bit_mask( NUM_BITS_PROCESSED_FLAG, BITPOS_PROCESSED_FLAG ) |
check legal size
|
private |
|
private |
|
inline |
|
inline |
|
inline |
References set_lcid(), set_rank(), set_status(), set_syn_id(), set_tid(), and nest::TARGET_ID_UNPROCESSED.
|
inline |
Return local connection id.
References BITPOS_LCID, MASK_LCID, and remote_target_id_.
|
inline |
Return offset.
|
inline |
Return rank.
References BITPOS_RANK, MASK_RANK, and remote_target_id_.
|
inline |
Get the status of the target identifier: processed or unprocessed.
References BITPOS_PROCESSED_FLAG, MASK_PROCESSED_FLAG, remote_target_id_, nest::TARGET_ID_PROCESSED, and nest::TARGET_ID_UNPROCESSED.
Referenced by is_processed().
|
inline |
Return synapse-type id.
References BITPOS_SYN_ID, MASK_SYN_ID, and remote_target_id_.
|
inline |
Return thread id.
References BITPOS_TID, MASK_TID, and remote_target_id_.
|
inline |
Return the status od the target identifier: processed or unprocessed.
References get_status(), and nest::TARGET_ID_PROCESSED.
|
inline |
Set the status of the target identifier to processed.
References set_status(), and nest::TARGET_ID_PROCESSED.
References remote_target_id_, set_status(), and nest::TARGET_ID_UNPROCESSED.
|
inline |
Set local connection id.
References BITPOS_LCID, nest::MAX_LCID, and remote_target_id_.
Referenced by Target().
|
inline |
Set rank.
References BITPOS_RANK, nest::MAX_RANK, and remote_target_id_.
Referenced by Target().
|
inline |
Set the status of the target identifier: processed or unprocessed.
References MASK_PROCESSED_FLAG, remote_target_id_, nest::TARGET_ID_PROCESSED, and nest::TARGET_ID_UNPROCESSED.
Referenced by mark_for_removal(), operator=(), Target(), and Target().
|
inline |
Set the synapse-type id.
References BITPOS_SYN_ID, nest::MAX_SYN_ID, and remote_target_id_.
Referenced by Target().
|
inline |
Set thread id.
References BITPOS_TID, nest::MAX_TID, and remote_target_id_.
Referenced by Target().
|
staticconstexprprivate |
Referenced by get_lcid(), and set_lcid().
|
staticconstexprprivate |
Referenced by get_status().
|
staticconstexprprivate |
Referenced by get_rank(), and set_rank().
|
staticconstexprprivate |
Referenced by get_syn_id(), and set_syn_id().
|
staticconstexprprivate |
|
staticconstexprprivate |
Referenced by get_lcid().
|
staticconstexprprivate |
Referenced by get_status(), and set_status().
|
staticconstexprprivate |
Referenced by get_rank().
|
staticconstexprprivate |
Referenced by get_syn_id().
|
staticconstexprprivate |
Referenced by get_tid().
|
private |
Referenced by get_lcid(), get_rank(), get_status(), get_syn_id(), get_tid(), operator=(), set_lcid(), set_rank(), set_status(), set_syn_id(), and set_tid().