GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
newModels.h File Reference
#include <algorithm>
#include <string>
#include <vector>
#include <cassert>
#include "snippet.h"
#include "initVarSnippet.h"

Go to the source code of this file.

Classes

class  NewModels::VarInit
 
class  NewModels::VarInitContainerBase< NumVars >
 
class  NewModels::VarInitContainerBase< 0 >
 
class  NewModels::Base
 Base class for all models - in addition to the parameters snippets have, models can have state variables. More...
 
class  NewModels::LegacyWrapper< ModelBase, LegacyModelType, ModelArray >
 Wrapper around old-style models stored in global arrays and referenced by index. More...
 

Namespaces

 NewModels
 

Macros

#define DECLARE_MODEL(TYPE, NUM_PARAMS, NUM_VARS)
 
#define IMPLEMENT_MODEL(TYPE)   IMPLEMENT_SNIPPET(TYPE)
 
#define SET_VARS(...)   virtual StringPairVec getVars() const override{ return __VA_ARGS__; }
 

Macro Definition Documentation

◆ DECLARE_MODEL

#define DECLARE_MODEL (   TYPE,
  NUM_PARAMS,
  NUM_VARS 
)
Value:
DECLARE_SNIPPET(TYPE, NUM_PARAMS) \
typedef NewModels::VarInitContainerBase<0> PreVarValues; \
typedef NewModels::VarInitContainerBase<0> PostVarValues;
#define DECLARE_SNIPPET(TYPE, NUM_PARAMS)
Definition: snippet.h:11
Definition: newModels.h:56
Definition: newModels.h:103

◆ IMPLEMENT_MODEL

#define IMPLEMENT_MODEL (   TYPE)    IMPLEMENT_SNIPPET(TYPE)

◆ SET_VARS

#define SET_VARS (   ...)    virtual StringPairVec getVars() const override{ return __VA_ARGS__; }