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::cDomainRationalBasis Class Reference

#include <cDomainRationalBasis.h>

Inheritance diagram for fib::cDomainRationalBasis:
Collaboration diagram for fib::cDomainRationalBasis:

List of all members.

Public Member Functions

virtual cDomainRationalBasisclone () const =0
virtual bool operator== (const cDomain &domain) const
virtual bool storeValue (doubleFib dValue, ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition) const =0
virtual doubleFib restoreValue (cReadBits &iBitStream, intFib &outStatus) const =0
- Public Member Functions inherited from fib::cDomainSingle
virtual bool isScalar () const
virtual bool isVector () const
virtual bool isElement (const doubleFib dValue) const =0
virtual bool isInBoundaries (const doubleFib dValue) const =0
virtual doubleFib round (const doubleFib dValue) const =0
virtual doubleFib getMaximum () const =0
virtual doubleFib getMinimum () const =0
virtual doubleFib getNull () const =0
virtual unsignedIntFib getCompressedSizeForValue () const =0
- Public Member Functions inherited from fib::cDomain
virtual ~cDomain ()=0
virtual string getType () const =0
virtual bool isReference () const
virtual bool equal (const cDomain &domain) const
virtual unsignedIntFib getCompressedSize () const =0
virtual bool storeXml (ostream &ostream) const =0
virtual intFib restoreXml (const TiXmlElement *pXmlElement)=0
virtual bool store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition) const =0
virtual intFib restore (cReadBits &iBitStream)=0

Protected Member Functions

 cDomainRationalBasis (const cDomainIntegerBasis &dfMantissa, const cDomainIntegerBasis &dfExponent)
 cDomainRationalBasis (const cDomainRationalBasis &domainRational)
virtual ~cDomainRationalBasis ()

Protected Attributes

cDomainIntegerBasispDomainMantissa
cDomainIntegerBasispDomainExponent

Additional Inherited Members

- Static Public Member Functions inherited from fib::cDomainSingle
static cDomainSinglecreateGoodDomain (list< doubleFib > &liValues)
- Static Public Member Functions inherited from fib::cDomain
static cDomainrestoreXml (const TiXmlElement *pXmlElement, intFib &outStatus)
static cDomainrestore (cReadBits &iBitStream, intFib &outStatus)

Detailed Description

Definition at line 51 of file cDomainRationalBasis.h.


Constructor & Destructor Documentation

fib::cDomainRationalBasis::cDomainRationalBasis ( const cDomainIntegerBasis dfMantissa,
const cDomainIntegerBasis dfExponent 
)
protected

The constructor for rational number domains.

Parameters:
dfMantissathe domain for the mantisse of the rational domain
dfExponentthe domain for the exponent of the rational domain
fib::cDomainRationalBasis::cDomainRationalBasis ( const cDomainRationalBasis domainRational)
protected

The copyconstructor for rational number domains.

Parameters:
domainRationalthe domain to copy
virtual fib::cDomainRationalBasis::~cDomainRationalBasis ( )
protectedvirtual

The desstructor for rational number domains.


Member Function Documentation

virtual cDomainRationalBasis* fib::cDomainRationalBasis::clone ( ) const
pure virtual

This Method clones this object.

Returns:
a clone of this object

Implements fib::cDomainSingle.

Implemented in fib::cDomainRational.

virtual bool fib::cDomainRationalBasis::operator== ( const cDomain domain) const
virtual

This Method checks if the given domain is equal to this domain.

Parameters:
domainthe domain to compare with
Returns:
true if the given domain is equal to this domain, else false

Reimplemented from fib::cDomain.

virtual doubleFib fib::cDomainRationalBasis::restoreValue ( cReadBits iBitStream,
intFib outStatus 
) const
pure virtual

This method restores the a value of the domain from the stream iBitStream wher it is stored in the compressed fib -format.

See also:
storeValue
cFibElement::restore
Parameters:
iBitStreamthe stream where this value is stored to in, because this stream is an cReadBits, any number of bits can be readed from it
outStatusAn reference to an rationalvalue where the errorvalue can be stored to. If the pointer is NULL no errorvalue will be given back. possible errorvalues are:
  • 0 loading successful
  • -1 loading error, invalid stream
  • -2 loading error, invalid data in stream
  • 1 loading warning, invalid data in stream, error could be corrected
  • 2 loading warning, invalid data in stream, maybe the loaded object is wrong
Returns:
the restored value

Implements fib::cDomainSingle.

Implemented in fib::cDomainRational.

virtual bool fib::cDomainRationalBasis::storeValue ( doubleFib  dValue,
ostream &  stream,
char &  cRestBits,
unsigned char &  uiRestBitPosition 
) const
pure virtual

This method stores the given value dValue in the compressed fib -format for the domain into the given stream. It is needed because the stream can yust store byts but the size of fib -elements can be any number of bits. Because of that ther have to be a possibility to exchange the missing bits betwean the fib -elements.

See also:
cFibElement::store
Parameters:
dValuethe value to store
streamthe stream where this domain should be stored to
cRestBitsthe not yet writen bits which should be stored
uiRestBitPositionthe number of bits in the cRestBits which should be writen respectively containing valid information
Returns:
true if the domain is stored, else false

Implements fib::cDomainSingle.

Implemented in fib::cDomainRational.


Member Data Documentation

cDomainIntegerBasis* fib::cDomainRationalBasis::pDomainExponent
protected

The domain for the exponent of the rational domain.

Definition at line 62 of file cDomainRationalBasis.h.

cDomainIntegerBasis* fib::cDomainRationalBasis::pDomainMantissa
protected

The domain for the mantisse of the rational domain.

Definition at line 57 of file cDomainRationalBasis.h.


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