46 [[nodiscard]]
const char*
name(
int i)
const {
70 template <
typename Identifier>
73 using base_type::base_type;
79 return this->
template get_tag<field::FloatingPoint>().num_variables();
86 auto*
const prefix_sums =
89 return prefix_sums[num_fields - 1];
100 auto*
const array_dims =
110 int array_index = 0)
const {
117 int array_index = 0) {
118 return this->
underlying_storage().fpfield_handle(this->
id(), field_index, array_index);
125 for (
auto i = 0;
i < num; ++
i) {
126 os <<
" fpfield[" <<
i <<
"]{";
void move(Item *q1, Item *q2, Item *q3)
std::string to_string(const T &obj)
Catch-all for floating point per-instance variables in the MOD file.
Variable const & info(std::size_t i) const
const char * name(int i) const
int array_dimension(int i) const
What is the array dimension of the i-th copy of this column?
std::size_t num_variables() const
How many copies of this column should be created?
FloatingPoint(std::vector< Variable > var_info)
std::vector< Variable > m_var_info
Base class defining the public API of Mechanism handles.
data_handle< field::FloatingPoint::type > fpfield_handle(int field_index, int array_index=0)
Return a data_handle to a floating point value.
int fpfield_dimension(int field_index) const
Return the array size of the given field.
friend std::ostream & operator<<(std::ostream &os, handle_interface const &handle)
field::FloatingPoint::type const & fpfield(int field_index, int array_index=0) const
field::FloatingPoint::type & fpfield(int field_index, int array_index=0)
int num_fpfields() const
Return the number of floating point fields accessible via fpfield.
int fpfields_size() const
Get the sum of array dimensions of floating point fields.
Stable handle to a generic value.
Struct used to index SoAoS data, such as array range variables.
Base class for neuron::container::soa<...> handles.
std::size_t current_row() const
Return current offset in the underlying storage where this object lives.
auto & underlying_storage()
Obtain a reference to the storage this handle refers to.
non_owning_identifier_without_container id() const
Obtain a lightweight identifier of the current entry.