NEURON
neuron::container::utils Namespace Reference

Namespaces

 detail
 

Classes

struct  storage_info
 Interface for obtaining information about model data containers. More...
 

Functions

template<typename T >
data_handle< T > find_data_handle (T *ptr)
 
std::unique_ptr< storage_infofind_container_info (void const *)
 Try and find a helpful name for a container. More...
 

Function Documentation

◆ find_container_info()

std::unique_ptr< storage_info > neuron::container::utils::find_container_info ( void const *  c)

Try and find a helpful name for a container.

In practice this can be expected to be work for the structures that can be discovered from neuron::model(), and not for anything else. If no information about the container can be found the returned std::optional will not contain a value.

Definition at line 149 of file container.cpp.

◆ find_data_handle()

template<typename T >
data_handle< T > neuron::container::utils::find_data_handle ( T *  ptr)

Definition at line 332 of file generic_data_handle.hpp.