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

big cleaning and update: switching to C++11

This commit is contained in:
2014-02-13 19:23:39 +00:00
parent f9e355e3ea
commit 47b9789f84
33 changed files with 426 additions and 1057 deletions

View File

@@ -61,21 +61,17 @@ unsigned int Function::getNArg(void) const
/******************************************************************************
* DoubleFunction implementation *
******************************************************************************/
DoubleFunction::DoubleFunction(const unsigned nArg, vecFunc *f)
DoubleFunction::DoubleFunction(const unsigned nArg, vecFunc f)
: Function(nArg)
, buffer_(new vector<double>(nArg))
, f_(f)
{
buffer_ = new vector<double>(nArg);
}
{}
DoubleFunction::~DoubleFunction(void)
{
delete buffer_;
}
{}
double DoubleFunction::evaluate(const std::vector<double> &arg) const
{
std::cout << "double()" << endl;
return f_(arg);
}