![]() |
NEURON
|
Base class defining the public API of Mechanism handles. More...
#include <mechanism.hpp>
Public Types | |
using | base_type = handle_base< Identifier > |
Public Member Functions | |
int | num_fpfields () const |
Return the number of floating point fields accessible via fpfield. More... | |
int | fpfields_size () const |
Get the sum of array dimensions of floating point fields. More... | |
int | fpfield_dimension (int field_index) const |
Return the array size of the given field. More... | |
field::FloatingPoint::type & | fpfield (int field_index, int array_index=0) |
field::FloatingPoint::type const & | fpfield (int field_index, int array_index=0) const |
data_handle< field::FloatingPoint::type > | fpfield_handle (int field_index, int array_index=0) |
Return a data_handle to a floating point value. More... | |
![]() | |
handle_base (Identifier identifier) | |
Construct a handle from an identifier. More... | |
std::size_t | current_row () const |
Return current offset in the underlying storage where this object lives. More... | |
non_owning_identifier_without_container | id () const |
Obtain a lightweight identifier of the current entry. More... | |
auto | id_hack () const |
This is a workaround for id sometimes being a macro. More... | |
auto & | underlying_storage () |
Obtain a reference to the storage this handle refers to. More... | |
auto const & | underlying_storage () const |
Obtain a const reference to the storage this handle refers to. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, handle_interface const &handle) |
Additional Inherited Members | |
![]() | |
template<typename Tag > | |
auto | get_handle () |
Get a data_handle<T> referring to the given field inside this handle. More... | |
template<typename Tag > | |
auto | get_handle (int field_index, int array_offset=0) |
Get a data_handle<T> referring to the (runtime) field_index-th copy of a given (static) field. More... | |
template<typename Tag > | |
auto & | get () |
template<typename Tag > | |
auto const & | get () const |
template<typename Tag > | |
constexpr Tag const & | get_tag () const |
Get the instance of the given tag type from underlying storage. More... | |
template<typename Tag > | |
auto & | get (int field_index, int array_offset=0) |
template<typename Tag > | |
auto const & | get (int field_index, int array_offset=0) const |
Base class defining the public API of Mechanism handles.
Identifier | The concrete owning/non-owning identifier type. |
This allows the same struct-like accessors (v(), ...) to be used on all of the different types of objects that represent a single Node:
Definition at line 71 of file mechanism.hpp.
using neuron::container::Mechanism::handle_interface< Identifier >::base_type = handle_base<Identifier> |
Definition at line 72 of file mechanism.hpp.
|
inline |
Definition at line 105 of file mechanism.hpp.
|
inline |
Definition at line 109 of file mechanism.hpp.
|
inline |
Return the array size of the given field.
Definition at line 95 of file mechanism.hpp.
|
inline |
Return a data_handle to a floating point value.
Definition at line 116 of file mechanism.hpp.
|
inline |
Get the sum of array dimensions of floating point fields.
Definition at line 85 of file mechanism.hpp.
|
inline |
Return the number of floating point fields accessible via fpfield.
Definition at line 78 of file mechanism.hpp.
|
friend |
Definition at line 121 of file mechanism.hpp.