// Algorithm.cpp #include "Algorithm.h" using std::ostream; using trf::Algorithm; //********************************************************************** // constructor Algorithm::Algorithm( ) : _debug(0) { } //********************************************************************** // destructor Algorithm::~Algorithm( ) { } //********************************************************************** // Set debug flag. void Algorithm::set_debug( int debug ) { _debug = debug; } //********************************************************************** // Get debug flag. int Algorithm::get_debug( ) const { return _debug; } //********************************************************************** // friends ostream& trf::operator<<( ostream& stream, const Algorithm& algo ) { algo.ostr( stream ); return stream; } //**********************************************************************