//////////////////////////////////////////////////////////// // emacs edit mode for this file is -*- C++ -*- // $Id$ //////////////////////////////////////////////////////////// // #pragma implementation #include "class.h" template Substitution& Substitution::operator= ( const Substitution& f ) { if ( this != &f ) { _factor = f._factor; _exp = f._exp; } return *this; } template Substitution& Substitution::operator= ( const T & f ) { _factor = f; _exp = 1; return *this; } template int operator== ( const Substitution &f1, const Substitution &f2 ) { return (f1.exp() == f2.exp()) && (f1.factor() == f2.factor()); } #ifndef NOSTREAMIO template void Substitution::print ( OSTREAM& s ) const { s << "(" << factor() << ")^" << exp(); } #endif