1 #ifndef FUNCTORBASE_IMPL_H
2 #define FUNCTORBASE_IMPL_H
17 if(param_name < param_.size())
19 param_[param_name] = param_value;
23 param_.push_back(param_value);
31 unsigned int n = func->
param_.size();
35 for(
unsigned int i=0; i < n; i++)
38 param_[i] = func->
param(i);
45 ASSERT(param_name < param_.size(),
"Parameter of the functor was not set.");
47 return param_[param_name];
67 #endif //FUNCTORBASE_IMPL_H
void set_param(unsigned int param_name, double param_value)
Sets a functor's parameter.
std::vector< double > param_
Class provides common functionality for functors.
FunctorBase()
Constructor.
I/O functions with filename storing, able to track current line in opened file. All standard stdio fu...
IFunctorBase()
Constructor.
virtual ~FunctorBase()
Destructor.
FunctorCommon()
Constructor.
virtual ~IFunctorBase()
Destructor.
void set_param_from_func(FunctorCommon< TType > *func)
Sets a functor's parameters from another functor.
virtual ~FunctorCommon()
Destructor.
double param(unsigned int param_name)
Returns parameter.