NEST main@caf0ae8
 
Loading...
Searching...
No Matches
nest_types.h File Reference
#include <cfloat>
#include <climits>
#include <cstddef>
#include <limits>
#include <stdint.h>
#include <type_traits>
#include "config.h"
#include <cstdint>
Include dependency graph for nest_types.h:

Go to the source code of this file.

Namespaces

namespace  nest
 Namespace for the NEST simulation kernel.
 

Typedefs

typedef long long nest::tic_t
 Type for Time tics.
 
typedef size_t nest::synindex
 For enumerations of synapse types.
 
typedef unsigned short nest::targetindex
 Unsigned short type for compact target representation.
 

Enumerations

enum  nest::SignalType { nest::NONE = 0 , nest::SPIKE = 1 , nest::BINARY = 2 , nest::ALL = SPIKE | BINARY }
 enum type of signal conveyed by spike events of a node. More...
 

Functions

constexpr uint64_t nest::generate_bit_mask (const uint8_t num_bits, const uint8_t bit_position)
 Default types used by the NEST kernel.
 
constexpr uint64_t nest::generate_max_value (const uint8_t num_bits)
 
 nest::__attribute__ ((__unused__)) const expr size_t invalid_index = invalid_targetindex - 1
 Unsigned long type for enumerations.
 
template<typename E >
constexpr auto nest::to_underlying (E e) noexcept
 Cast enum value to underlying integer type.
 

Variables

constexpr uint8_t nest::NUM_BITS_RANK = 18U
 
constexpr uint8_t nest::NUM_BITS_TID = 9U
 
constexpr uint8_t nest::NUM_BITS_SYN_ID = 9U
 
constexpr uint8_t nest::NUM_BITS_LCID = 27U
 
constexpr uint8_t nest::NUM_BITS_PROCESSED_FLAG = 1U
 
constexpr uint8_t nest::NUM_BITS_MARKER_SPIKE_DATA = 2U
 
constexpr uint8_t nest::NUM_BITS_FLUSH_EVENT = 1U
 
constexpr uint8_t nest::NUM_BITS_LAG = 14U
 
constexpr uint8_t nest::NUM_BITS_DELAY = 21U
 
constexpr uint8_t nest::NUM_BITS_NODE_ID = 61U
 
constexpr uint64_t nest::MAX_LCID = generate_max_value( NUM_BITS_LCID )
 
constexpr int64_t nest::MAX_RANK = generate_max_value( NUM_BITS_RANK )
 
constexpr int64_t nest::MAX_TID = generate_max_value( NUM_BITS_TID )
 
constexpr uint64_t nest::MAX_SYN_ID = generate_max_value( NUM_BITS_SYN_ID )
 
constexpr uint64_t nest::DISABLED_NODE_ID = generate_max_value( NUM_BITS_NODE_ID )
 
constexpr uint64_t nest::MAX_NODE_ID = DISABLED_NODE_ID - 1
 
constexpr tic_t nest::tic_t_max = std::numeric_limits< tic_t >::max()
 
constexpr tic_t nest::tic_t_min = std::numeric_limits< tic_t >::min()
 
constexpr synindex nest::invalid_synindex = MAX_SYN_ID
 
constexpr targetindex nest::invalid_targetindex = USHRT_MAX
 
constexpr size_t nest::invalid_lcid = MAX_LCID
 Marker for invalid LCID values.
 
constexpr size_t nest::invalid_thread = std::numeric_limits< size_t >::max()
 Value for invalid connection thread id.
 
constexpr size_t nest::invalid_port = std::numeric_limits< size_t >::max()
 Value for invalid connection port number.
 
constexpr long nest::delay_min = std::numeric_limits< long >::min()
 Values for min and max delay.
 
constexpr long nest::delay_max = std::numeric_limits< long >::max()