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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user