GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
Models::Base::Var Struct Reference

A variable has a name, a type and an access type. More...

#include <models.h>

Public Member Functions

 Var (const std::string &n, const std::string &t, VarAccess a)
 
 Var (const std::string &n, const std::string &t)
 
 Var ()
 
bool operator== (const Var &other) const
 

Public Attributes

std::string name
 
std::string type
 
VarAccess access
 

Detailed Description

A variable has a name, a type and an access type.

Explicit constructors required as although, through the wonders of C++ aggregate initialization, access would default to VarAccess::READ_WRITE if not specified, this results in a -Wmissing-field-initializers warning on GCC and Clang

Constructor & Destructor Documentation

◆ Var() [1/3]

Models::Base::Var::Var ( const std::string &  n,
const std::string &  t,
VarAccess  a 
)
inline

◆ Var() [2/3]

Models::Base::Var::Var ( const std::string &  n,
const std::string &  t 
)
inline

◆ Var() [3/3]

Models::Base::Var::Var ( )
inline

Member Function Documentation

◆ operator==()

bool Models::Base::Var::operator== ( const Var other) const
inline

Member Data Documentation

◆ access

VarAccess Models::Base::Var::access

◆ name

std::string Models::Base::Var::name

◆ type

std::string Models::Base::Var::type

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