GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
NewModels::VarInitContainerBase< NumVars > Class Template Reference

#include <newModels.h>

Public Member Functions

template<typename... T>
 VarInitContainerBase (T &&... initialisers)
 
const std::vector< VarInit > & getInitialisers () const
 Gets initialisers as a vector of Values. More...
 
const VarInitoperator[] (size_t pos) const
 

Detailed Description

template<size_t NumVars>
class NewModels::VarInitContainerBase< NumVars >

Wrapper to ensure at compile time that correct number of value initialisers are used when specifying the values of a model's initial state.

Constructor & Destructor Documentation

◆ VarInitContainerBase()

template<size_t NumVars>
template<typename... T>
NewModels::VarInitContainerBase< NumVars >::VarInitContainerBase ( T &&...  initialisers)
inline

Member Function Documentation

◆ getInitialisers()

template<size_t NumVars>
const std::vector<VarInit>& NewModels::VarInitContainerBase< NumVars >::getInitialisers ( ) const
inline

Gets initialisers as a vector of Values.

◆ operator[]()

template<size_t NumVars>
const VarInit& NewModels::VarInitContainerBase< NumVars >::operator[] ( size_t  pos) const
inline

The documentation for this class was generated from the following file: