GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
InitVarSnippet::Constant Class Reference

Initialises variable to a constant value. More...

#include <initVarSnippet.h>

Inheritance diagram for InitVarSnippet::Constant:
InitVarSnippet::Base Snippet::Base

Public Member Functions

 DECLARE_SNIPPET (InitVarSnippet::Constant, 1)
 
 SET_CODE ("$(value) = $(constant);")
 
virtual StringVec getParamNames () const override
 Gets names of of (independent) model parameters. More...
 
- Public Member Functions inherited from InitVarSnippet::Base
virtual std::string getCode () const
 
- Public Member Functions inherited from Snippet::Base
virtual ~Base ()
 
virtual DerivedParamVec getDerivedParams () const
 

Additional Inherited Members

- Public Types inherited from Snippet::Base
typedef std::function< double(const std::vector< double > &, double)> DerivedParamFunc
 
typedef std::vector< std::string > StringVec
 
typedef std::vector< std::pair< std::string, std::string > > StringPairVec
 
typedef std::vector< std::pair< std::string, std::pair< std::string, double > > > NameTypeValVec
 
typedef std::vector< std::pair< std::string, DerivedParamFunc > > DerivedParamVec
 

Detailed Description

Initialises variable to a constant value.

This snippet takes 1 parameter:

  • value - The value to intialise the variable to
Note
This snippet type is seldom used directly - NewModels::VarInit has an implicit constructor that, internally, creates one of these snippets

Member Function Documentation

◆ DECLARE_SNIPPET()

InitVarSnippet::Constant::DECLARE_SNIPPET ( InitVarSnippet::Constant  ,
 
)

◆ getParamNames()

virtual StringVec InitVarSnippet::Constant::getParamNames ( ) const
inlineoverridevirtual

Gets names of of (independent) model parameters.

Reimplemented from Snippet::Base.

◆ SET_CODE()

InitVarSnippet::Constant::SET_CODE ( )

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