polynomx< TNum > Class Template Reference
[Algebra objectsPolynoms]

represents a polynom in one variable

#include <polynom.h>

List of all members.

Public Types

typedef TNum CoefficientType

Public Member Functions

polynomxoperator= (const polynomx &fpx)
Constructors / Destructors

 polynomx (const int gr)
 polynomx (const polynomx &fpx)
virtual ~polynomx ()
init

void clear (int _degree)
void clear ()
Data access

TNum getCoeff (const int x_exp) const
TNum & getCoeffRef (const int x_exp)
const TNum & getCoeffConstRef (const int x_exp) const
TNum const getCoeffConst (const int x_exp) const
void setCoeff (const int x_exp, const TNum &value)
Properties

const int getDegree () const

Protected Member Functions

Safety

void testbounds (const int x_exp) const

Private Attributes

int maxDegree
int size
TNum * koeff
 data; koeff[x_exp] = value;

Detailed Description

template<class TNum>
class polynomx< TNum >

Definition at line 230 of file polynom.h.


Member Typedef Documentation

template<class TNum>
typedef TNum polynomx< TNum >::CoefficientType

Definition at line 244 of file polynom.h.


Constructor & Destructor Documentation

template<class TNum >
polynomx< TNum >::polynomx ( const int  gr  )  [inline]

Definition at line 403 of file polynom.cpp.

References polynomx< TNum >::koeff, and polynomx< TNum >::size.

template<class TNum >
polynomx< TNum >::polynomx ( const polynomx< TNum > &  fpx  )  [inline]

Definition at line 415 of file polynom.cpp.

References polynomx< TNum >::koeff, and polynomx< TNum >::size.

template<class TNum >
polynomx< TNum >::~polynomx (  )  [inline, virtual]

Definition at line 534 of file polynom.cpp.

References polynomx< TNum >::koeff.


Member Function Documentation

template<class TNum >
void polynomx< TNum >::clear (  )  [inline]

Definition at line 550 of file polynom.cpp.

References polynomx< TNum >::koeff, and polynomx< TNum >::size.

template<class TNum >
void polynomx< TNum >::clear ( int  _degree  )  [inline]

Definition at line 541 of file polynom.cpp.

References polynomx< TNum >::koeff, and polynomx< TNum >::size.

template<class TNum >
TNum polynomx< TNum >::getCoeff ( const int  x_exp  )  const [inline]

Definition at line 463 of file polynom.cpp.

References polynomx< TNum >::koeff, and polynomx< TNum >::testbounds().

Here is the call graph for this function:

template<class TNum >
TNum const polynomx< TNum >::getCoeffConst ( const int  x_exp  )  const [inline]

Definition at line 497 of file polynom.cpp.

References polynomx< TNum >::koeff, and polynomx< TNum >::testbounds().

Here is the call graph for this function:

template<class TNum >
const TNum & polynomx< TNum >::getCoeffConstRef ( const int  x_exp  )  const [inline]

Definition at line 475 of file polynom.cpp.

References polynomx< TNum >::koeff, and polynomx< TNum >::testbounds().

Here is the call graph for this function:

template<class TNum >
TNum & polynomx< TNum >::getCoeffRef ( const int  x_exp  )  [inline]

Definition at line 486 of file polynom.cpp.

References polynomx< TNum >::koeff, and polynomx< TNum >::testbounds().

Here is the call graph for this function:

template<class TNum >
const int polynomx< TNum >::getDegree (  )  const [inline]

Definition at line 523 of file polynom.cpp.

References polynomx< TNum >::maxDegree.

template<class TNum >
polynomx< TNum > & polynomx< TNum >::operator= ( const polynomx< TNum > &  fpx  )  [inline]
template<class TNum >
void polynomx< TNum >::setCoeff ( const int  x_exp,
const TNum &  value 
) [inline]

Definition at line 510 of file polynom.cpp.

References polynomx< TNum >::koeff, and polynomx< TNum >::testbounds().

Here is the call graph for this function:

template<class TNum >
void polynomx< TNum >::testbounds ( const int  x_exp  )  const [inline, protected]

Member Data Documentation

template<class TNum>
TNum* polynomx< TNum >::koeff [private]
template<class TNum>
int polynomx< TNum >::maxDegree [private]
template<class TNum>
int polynomx< TNum >::size [private]

The documentation for this class was generated from the following files:
Generated on Tue Nov 23 13:10:53 2010 for centerfocus by  doxygen 1.6.3