Cypress  1.0
C++ Spiking Neural Network Simulation Framework
Classes | Namespaces | Macros | Functions
neuron_parameters.hpp File Reference
#include <array>
#include <iostream>
#include <vector>
#include <string>
#include <cypress/core/network.hpp>
#include "logger.hpp"
Include dependency graph for neuron_parameters.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cypress::NeuronParameter
 

Namespaces

 cypress
 

Macros

#define CYPRESS_UTILS_NEURON_PARAMETERS_HPP
 
#define NAMED_PARAMETER(NAME, IDX)
 

Functions

template<typename T >
std::map< std::string, T > cypress::json_to_map (const cypress::Json &obj)
 
template<typename T >
std::vector< T > cypress::read_check (std::map< std::string, T > &input, const std::vector< std::string > &names, const std::vector< T > &defaults)
 

Macro Definition Documentation

#define CYPRESS_UTILS_NEURON_PARAMETERS_HPP
#define NAMED_PARAMETER (   NAME,
  IDX 
)
Value:
static constexpr size_t idx_##NAME = IDX; \
void NAME(Real x) { arr[IDX] = x; } \
Real &NAME() { return arr[IDX]; } \
Real NAME() const { return arr[IDX]; }
double Real
Definition: types.hpp:56

Macro used for defining the getters and setters associated with a parameter value.