class InitSparseConnectivitySnippet::Base

Overview

#include <initSparseConnectivitySnippet.h>

class Base: public Snippet::Base
{
public:
    // typedefs

    typedef std::function<unsigned int(unsigned int, unsigned int, const std::vector<double>&)> CalcMaxLengthFunc;

    // methods

    virtual std::string getRowBuildCode() const;
    virtual ParamValVec getRowBuildStateVars() const;
    virtual CalcMaxLengthFunc getCalcMaxRowLengthFunc() const;
    virtual CalcMaxLengthFunc getCalcMaxColLengthFunc() const;
    virtual EGPVec getExtraGlobalParams() const;
    size_t getExtraGlobalParamIndex(const std::string& paramName) const;
};

// direct descendants

class FixedProbabilityBase;
class OneToOne;
class Uninitialised;

Inherited Members

public:
    // typedefs

    typedef std::vector<std::string> StringVec;
    typedef std::vector<EGP> EGPVec;
    typedef std::vector<ParamVal> ParamValVec;
    typedef std::vector<DerivedParam> DerivedParamVec;

    // structs

    struct DerivedParam;
    struct EGP;
    struct ParamVal;

    // methods

    virtual ~Base();
    virtual StringVec getParamNames() const;
    virtual DerivedParamVec getDerivedParams() const;

Detailed Documentation

Methods

virtual CalcMaxLengthFunc getCalcMaxRowLengthFunc() const

Get function to calculate the maximum row length of this connector based on the parameters and the size of the pre and postsynaptic population.

virtual CalcMaxLengthFunc getCalcMaxColLengthFunc() const

Get function to calculate the maximum column length of this connector based on the parameters and the size of the pre and postsynaptic population.

virtual EGPVec getExtraGlobalParams() const

Gets names and types (as strings) of additional per-population parameters for the connection initialisation snippet

size_t getExtraGlobalParamIndex(const std::string& paramName) const

Find the index of a named extra global parameter.