Refactor about 4 kSLOC C++ code:
- Create a Sample class derived from Function reusing code from PiecewiseSample;
- Create a PiecewiseGeneric class such that PiecewiseGeneric::Piece::function is a Function * and not a
- Use C++11 smart pointers (probably std::unique_ptr) to manipulate Function *.
Please contact via PM to discuss details.