NEURON
node.cpp File Reference
#include "neuron/container/node.hpp"
#include "neuron/container/soa_container.hpp"
#include "section.h"
#include <catch2/generators/catch_generators.hpp>
#include <catch2/catch_test_macros.hpp>
#include <iostream>
#include <numeric>
#include <optional>
#include <random>
#include <sstream>
#include <vector>
#include <unordered_map>

Go to the source code of this file.

Namespaces

 neuron
 In mechanism libraries, cannot use auto const token = nrn_ensure_model_data_are_sorted(); because the return type is incomplete (from include/neuron/model_data.hpp).
 
 neuron::test
 

Enumerations

enum class  Transform { None , ViaRawPointer , ViaGenericDataHandle }
 

Functions

template<typename T >
data_handle< T > transform (data_handle< T > handle, Transform type)
 
template<typename T >
static std::string to_str (T const &x)
 
 TEST_CASE ("data_handle<double>", "[Neuron][data_structures][data_handle]")
 
std::vector< double > neuron::test::get_node_voltages (std::vector<::Node > const &nodes)
 
std::tuple< std::vector<::Node >, std::vector< double > > neuron::test::get_nodes_and_reference_voltages (std::size_t num_nodes=10)
 
 TEST_CASE ("SOA-backed Node structure", "[Neuron][data_structures][node]")
 
 TEST_CASE ("Fast membrane current storage", "[Neuron][data_structures][node][fast_imem]")
 
 TEST_CASE ("Deleting a row from a frozen SoA container causes a fatal error", "[.][tests_that_abort]")
 

Variables

constexpr static double magic_voltage_value = 42.
 

Enumeration Type Documentation

◆ Transform

enum Transform
strong
Enumerator
None 
ViaRawPointer 
ViaGenericDataHandle 

Definition at line 30 of file node.cpp.

Function Documentation

◆ TEST_CASE() [1/4]

TEST_CASE ( "data_handle<double>"  ,
""  [Neuron][data_structures][data_handle] 
)

Definition at line 52 of file node.cpp.

◆ TEST_CASE() [2/4]

TEST_CASE ( "Deleting a row from a frozen SoA container causes a fatal error ,
""  [.][tests_that_abort] 
)

Definition at line 547 of file node.cpp.

◆ TEST_CASE() [3/4]

TEST_CASE ( "Fast membrane current storage ,
""  [Neuron][data_structures][node][fast_imem] 
)

Definition at line 443 of file node.cpp.

◆ TEST_CASE() [4/4]

TEST_CASE ( "SOA-backed Node structure"  ,
""  [Neuron][data_structures][node] 
)

Definition at line 263 of file node.cpp.

◆ to_str()

template<typename T >
static std::string to_str ( T const &  x)
static

Definition at line 46 of file node.cpp.

◆ transform()

template<typename T >
data_handle<T> transform ( data_handle< T >  handle,
Transform  type 
)

Definition at line 32 of file node.cpp.

Variable Documentation

◆ magic_voltage_value

constexpr static double magic_voltage_value = 42.
staticconstexpr

Definition at line 43 of file node.cpp.