Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

DCFencode_Rtrsmra_float_scalar.h

Go to the documentation of this file.
00001 // DCFencode_Rtrsmra_float_scalar.h
00002 //////////////////////////////////////////////////////////////////////
00003 //          (c) Copyright 2001-2002 Brown Deer Technology, LLC.
00004 //                        All rights reserved.
00005 //////////////////////////////////////////////////////////////////////
00006 
00007 #ifndef DCFENCODE_RTRSMRA_FLOAT_SCALAR_H
00008 #define DCFENCODE_RTRSMRA_FLOAT_SCALAR_H
00009 
00010 #include "RtmraDim.h"
00011 template <typename Data_t, Rtmra_Dim Dim> class Rtrsmra;
00012 
00013 template <>
00014 class DCFencode< Rtrsmra<float,scalar> > : public DCFencodeBase 
00015 {
00016    public:
00017       inline DCFencode();
00018       inline int enctype();
00019       inline int encsizeb();
00020       inline void quantcoef( const float );
00021       inline float quantcoef();
00022       inline int bplen_coef();
00023 
00024       void descr( ostream& = cout );
00025 
00026    protected:
00027       float _quantcoef;
00028       int _bplen_coef;
00029    
00030    friend 
00031       ostream& operator << ( ostream&, DCFencode& );
00032 
00033    friend 
00034       istream& operator >> ( istream&, DCFencode& );
00035 };
00036 
00037 inline
00038 DCFencode< Rtrsmra<float,scalar> >::DCFencode () 
00039   : _quantcoef(0), _bplen_coef(sizeof(float)) {}
00040 
00041 inline
00042 int DCFencode< Rtrsmra<float,scalar> >::enctype() 
00043 { 
00044    return DCFenctype_Rtrsmra_float_scalar; 
00045 }
00046   
00047 inline
00048 int DCFencode< Rtrsmra<float,scalar> >::encsizeb() { return sizeof(float)+1; }
00049 
00050 inline
00051 void DCFencode< Rtrsmra<float,scalar> >::quantcoef(const float quantcoef) {
00052    _quantcoef=quantcoef;
00053 }
00054 
00055 inline
00056 float DCFencode< Rtrsmra<float,scalar> >::quantcoef() { return _quantcoef; }
00057 
00058 inline
00059 int DCFencode< Rtrsmra<float,scalar> >::bplen_coef() { return _bplen_coef; }
00060 
00061 #endif
00062 

Generated on Mon May 31 21:38:44 2004 for SR2k4 Assembler by doxygen 1.3.6