1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-07-31 13:57:05 +01:00

Function classes: default function replaced by nullptr

This commit is contained in:
2014-04-07 15:56:08 +01:00
parent dc659991d0
commit 749818d9cc
3 changed files with 3 additions and 7 deletions

View File

@@ -38,14 +38,14 @@ private:
public:
// constructor
DoubleModel(const Index nArg = 0, const Index nPar = 0,
const vecFunc &f = nullFunction_);
const vecFunc &f = nullptr);
// destructor
virtual ~DoubleModel(void) = default;
// access
virtual Index getNArg(void) const;
virtual Index getNPar(void) const;
void setFunction(const Index nArg = 0, const Index nPar = 0,
const vecFunc &f = nullFunction_);
const vecFunc &f = nullptr);
// function call
double operator()(const DVec &data, const DVec &par) const;
double operator()(const std::vector<double> &data,
@@ -59,7 +59,6 @@ private:
private:
std::shared_ptr<ModelSize> size_;
vecFunc f_;
static const vecFunc nullFunction_;
};
END_NAMESPACE