template class Snippet::InitΒΆ

Class used to bind together everything required to utilize a snippet

  1. A pointer to a variable initialisation snippet
  2. The parameters required to control the variable initialisation snippet
#include <snippet.h>

template <typename SnippetBase>
class Init
{
public:
    // methods

    Init(
        const SnippetBase* snippet,
        const std::vector<double>& params
        );

    const SnippetBase* getSnippet() const;
    const std::vector<double>& getParams() const;
    const std::vector<double>& getDerivedParams() const;
    void initDerivedParams(double dt);
};

// direct descendants

class Init;
class VarInit;