NEURON
neuron::cache Namespace Reference

Classes

struct  MechanismRange
 Version of Memb_list for use in performance-critical code. More...
 
struct  MechanismInstance
 Specialised version of MechanismRange for a single instance. More...
 
struct  Mechanism
 
struct  Thread
 
struct  Model
 

Functions

template<typename Callable >
void indices_to_cache (short type, Callable callable)
 Call the given method with each dparam index that should be cached for a mechanism. More...
 

Variables

std::optional< Modelmodel {}
 

Function Documentation

◆ indices_to_cache()

template<typename Callable >
void neuron::cache::indices_to_cache ( short  type,
Callable  callable 
)

Call the given method with each dparam index that should be cached for a mechanism.

The callable will be invoked with the largest index first. This is useful if you want to resize a container and use the indices as offsets into it.

Definition at line 16 of file mechanism_range.hpp.

Variable Documentation

◆ model

std::optional< Model > neuron::cache::model {}

Definition at line 59 of file container.cpp.