GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
NewModels::LegacyWrapper< ModelBase, LegacyModelType, ModelArray > Class Template Reference

Wrapper around old-style models stored in global arrays and referenced by index. More...

#include <newModels.h>

Inheritance diagram for NewModels::LegacyWrapper< ModelBase, LegacyModelType, ModelArray >:

Public Member Functions

 LegacyWrapper (unsigned int legacyTypeIndex)
 
virtual StringVec getParamNames () const
 Gets names of of (independent) model parameters. More...
 
virtual DerivedParamVec getDerivedParams () const
 
virtual StringPairVec getVars () const
 Gets names and types (as strings) of model variables. More...
 

Static Protected Member Functions

static StringPairVec zipStringVectors (const StringVec &a, const StringVec &b)
 

Protected Attributes

const unsigned int m_LegacyTypeIndex
 Index into the array of legacy models. More...
 

Detailed Description

template<typename ModelBase, typename LegacyModelType, const std::vector< LegacyModelType > & ModelArray>
class NewModels::LegacyWrapper< ModelBase, LegacyModelType, ModelArray >

Wrapper around old-style models stored in global arrays and referenced by index.

Constructor & Destructor Documentation

◆ LegacyWrapper()

template<typename ModelBase, typename LegacyModelType, const std::vector< LegacyModelType > & ModelArray>
NewModels::LegacyWrapper< ModelBase, LegacyModelType, ModelArray >::LegacyWrapper ( unsigned int  legacyTypeIndex)
inline

Member Function Documentation

◆ getDerivedParams()

template<typename ModelBase, typename LegacyModelType, const std::vector< LegacyModelType > & ModelArray>
virtual DerivedParamVec NewModels::LegacyWrapper< ModelBase, LegacyModelType, ModelArray >::getDerivedParams ( ) const
inlinevirtual

Gets names of derived model parameters and the function objects to call to Calculate their value from a vector of model parameter values

◆ getParamNames()

template<typename ModelBase, typename LegacyModelType, const std::vector< LegacyModelType > & ModelArray>
virtual StringVec NewModels::LegacyWrapper< ModelBase, LegacyModelType, ModelArray >::getParamNames ( ) const
inlinevirtual

Gets names of of (independent) model parameters.

◆ getVars()

template<typename ModelBase, typename LegacyModelType, const std::vector< LegacyModelType > & ModelArray>
virtual StringPairVec NewModels::LegacyWrapper< ModelBase, LegacyModelType, ModelArray >::getVars ( ) const
inlinevirtual

Gets names and types (as strings) of model variables.

◆ zipStringVectors()

template<typename ModelBase, typename LegacyModelType, const std::vector< LegacyModelType > & ModelArray>
static StringPairVec NewModels::LegacyWrapper< ModelBase, LegacyModelType, ModelArray >::zipStringVectors ( const StringVec &  a,
const StringVec &  b 
)
inlinestaticprotected

Member Data Documentation

◆ m_LegacyTypeIndex

template<typename ModelBase, typename LegacyModelType, const std::vector< LegacyModelType > & ModelArray>
const unsigned int NewModels::LegacyWrapper< ModelBase, LegacyModelType, ModelArray >::m_LegacyTypeIndex
protected

Index into the array of legacy models.


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