The create_new_interface Function


aboucher - Posted on 10 April 2009

This is a static function that creates a new instance of the algorithm object. For example, in the case of MovingAverage:


Named_interface* MovingAverage::create_new_interface( std::string& ) {
  return new MovingAverage;
}