The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
fib::algorithms::nLinearEquation::cLinearEquation< tFactors > Class Template Reference

#include <cLinearEquation.h>

Collaboration diagram for fib::algorithms::nLinearEquation::cLinearEquation< tFactors >:

List of all members.

Public Member Functions

 cLinearEquation (unsigned long uiInNumberOfFactors=1, tFactors inConstant=0.0)
cLinearEquationoperator+ (const cLinearEquation &equiation)
void operator+= (const cLinearEquation &equiation)
cLinearEquationmult (tFactors value)
bool isNull () const
bool isSolvebel () const
unsigned long getNumberOfFactorsNotNull () const
void print (ostream &outputStream)

Public Attributes

tFactors constant
vector< tFactors > vecFactors

Detailed Description

template<class tFactors>
class fib::algorithms::nLinearEquation::cLinearEquation< tFactors >

Definition at line 63 of file cLinearEquation.h.


Constructor & Destructor Documentation

template<class tFactors >
fib::algorithms::nLinearEquation::cLinearEquation< tFactors >::cLinearEquation ( unsigned long  uiInNumberOfFactors = 1,
tFactors  inConstant = 0.0 
)

standardconstructor

Parameters:
uiInNumberOfFactorsthe number of factors in the to create equiation (they will be initialisized with 1)
inConstantthe constant for the equiation (
See also:
constant)

Member Function Documentation

template<class tFactors >
unsigned long fib::algorithms::nLinearEquation::cLinearEquation< tFactors >::getNumberOfFactorsNotNull ( ) const
Returns:
the number of factors which are not 0
template<class tFactors >
bool fib::algorithms::nLinearEquation::cLinearEquation< tFactors >::isNull ( ) const
Returns:
true if all factors and the constant are 0, else false
template<class tFactors >
bool fib::algorithms::nLinearEquation::cLinearEquation< tFactors >::isSolvebel ( ) const
Returns:
true if the equiation is solvebel, else false (all factors are 0, but the constant is not 0)
template<class tFactors >
cLinearEquation& fib::algorithms::nLinearEquation::cLinearEquation< tFactors >::mult ( tFactors  value)

This method multiplies the inequiation with the given factor.

Parameters:
valuethe value, with which to multiply this inequiation
Returns:
a reference to this inequiation
template<class tFactors >
cLinearEquation& fib::algorithms::nLinearEquation::cLinearEquation< tFactors >::operator+ ( const cLinearEquation< tFactors > &  equiation)

This operator adds the given linear equiation to this equiation. For this all correspondending factors and the constant will be added.

See also:
operator+=()
Parameters:
linInequiationthe inequiation to add to this inequiation
Returns:
a reference to this inequiation
template<class tFactors >
void fib::algorithms::nLinearEquation::cLinearEquation< tFactors >::operator+= ( const cLinearEquation< tFactors > &  equiation)

This operator adds the given linear equiation to this equiation. For this all correspondending factors and the constant will be added.

See also:
operator+()
Parameters:
linInequiationthe inequiation to add to this inequiation
template<class tFactors >
void fib::algorithms::nLinearEquation::cLinearEquation< tFactors >::print ( ostream &  outputStream)

This method print the inequiation in a readebel form to the given output stream outputSream.

Parameters:
outputStreamthe stream wher to print this inequiation to

Member Data Documentation

template<class tFactors >
tFactors fib::algorithms::nLinearEquation::cLinearEquation< tFactors >::constant

The constant factor for the equiation.

Definition at line 68 of file cLinearEquation.h.

template<class tFactors >
vector< tFactors > fib::algorithms::nLinearEquation::cLinearEquation< tFactors >::vecFactors

The factors for the equiation.

Definition at line 73 of file cLinearEquation.h.


The documentation for this class was generated from the following file: