Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Polynomial Class Template Reference

#include <Polynomial.h>

Inheritance diagram for Polynomial::

PBTree List of all members.

Public Methods

 Polynomial ()
 Polynomial (const char *)
 Polynomial (const Monomial< R > &)
 Polynomial (const Polynomial &)
 Polynomial (const R &)
bool operator== (const Polynomial &) const
bool operator!= (const Polynomial &) const
Polynomial& operator= (const Polynomial &)
Polynomial& operator+= (const Polynomial &)
Polynomial& operator-= (const Polynomial &)
Polynomial& operator *= (const Polynomial &)
Polynomial operator+ (const Polynomial &) const
Polynomial operator- (const Polynomial &) const
Polynomial operator * (const Polynomial &) const
Polynomial operator- () const
bool isIdentity () const
int degree () const
int numberOfMonomials () const

Private Methods

void printOn (ostream &) const
Polynomial readFrom (istream &istr, Chars &errMesg)
virtual void theKeyIsFound (const Monomial< R > &key, Monomial< R > &value)

Friends

ostream& operator<< (ostream &ostr, const Polynomial &P)
IStreamPoll operator>> (istream &istr, Polynomial< R > &P)

template<class R> class Polynomial


Constructor & Destructor Documentation

template<class R>
Polynomial<R>::Polynomial<R> ( ) [inline]
 

Definition at line 234 of file Polynomial.h.

template<class R>
Polynomial<R>::Polynomial<R> ( const char * )
 

template<class R>
Polynomial<R>::Polynomial<R> ( const Monomial< R > & )
 

template<class R>
Polynomial<R>::Polynomial<R> ( const Polynomial<R> & )
 

template<class R>
Polynomial<R>::Polynomial<R> ( const R & )
 


Member Function Documentation

template<class R>
bool Polynomial<R>::operator== ( const Polynomial<R> & ) const
 

template<class R>
bool Polynomial<R>::operator!= ( const Polynomial<R> & ) const
 

template<class R>
Polynomial<R>& Polynomial<R>::operator= ( const Polynomial<R> & )
 

template<class R>
Polynomial<R>& Polynomial<R>::operator+= ( const Polynomial<R> & )
 

template<class R>
Polynomial<R>& Polynomial<R>::operator-= ( const Polynomial<R> & )
 

template<class R>
Polynomial<R>& Polynomial<R>::operator *= ( const Polynomial<R> & )
 

template<class R>
Polynomial<R> Polynomial<R>::operator+ ( const Polynomial<R> & ) const
 

template<class R>
Polynomial<R> Polynomial<R>::operator- ( const Polynomial<R> & ) const
 

template<class R>
Polynomial<R> Polynomial<R>::operator * ( const Polynomial<R> & ) const
 

template<class R>
Polynomial<R> Polynomial<R>::operator- ( ) const
 

template<class R>
bool Polynomial<R>::isIdentity ( ) const
 

template<class R>
int Polynomial<R>::degree ( ) const
 

template<class R>
int Polynomial<R>::numberOfMonomials ( ) const
 

template<class R>
void Polynomial<R>::printOn ( ostream & ) const [private]
 

Referenced by operator<<().

template<class R>
Polynomial<R> Polynomial<R>::readFrom ( istream & istr,
Chars & errMesg ) [inline, private]
 

Definition at line 317 of file Polynomial.h.

Referenced by operator>>().

template<class R>
void Polynomial<R>::theKeyIsFound ( const Monomial< R > & key,
Monomial< R > & value ) [inline, private, virtual]
 

Definition at line 323 of file Polynomial.h.


Friends And Related Function Documentation

template<class R>
ostream & operator<< ( ostream & ostr,
const Polynomial<R> & P ) [friend]
 

Definition at line 291 of file Polynomial.h.

template<class R>
IStreamPoll operator>> ( istream & istr,
Polynomial< R > & P ) [friend]
 

Definition at line 211 of file Polynomial.h.


The documentation for this class was generated from the following file:
Generated at Tue Jun 19 09:50:02 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001