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

DCFencode_Rtmra_double_scalar.h

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

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