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

DCFencode_Rtrsmra_double_scalar.h

Go to the documentation of this file.
00001 // DCFencode_Rtrsmra_double_scalar_.h
00002 //////////////////////////////////////////////////////////////////////
00003 //          (c) Copyright 2001-2002 Brown Deer Technology, LLC.
00004 //                        All rights reserved.
00005 //////////////////////////////////////////////////////////////////////
00006 
00007 #ifndef DCFENCODE_RTRSMRA_DOUBLE_SCALAR_H
00008 #define DCFENCODE_RTRSMRA_DOUBLE_SCALAR_H
00009 
00010 #include "RtmraDim.h"
00011 template <typename Data_t, Rtmra_Dim Dim> class Rtrsmra;
00012 
00013 template <>
00014 class DCFencode< Rtrsmra<double,scalar> > : public DCFencodeBase 
00015 {
00016    public:
00017       inline 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 inline
00038 DCFencode< Rtrsmra<double,scalar> >::DCFencode () 
00039   : _quantcoef(0), _bplen_coef(sizeof(double)) {}
00040 
00041 inline
00042 int DCFencode< Rtrsmra<double,scalar> >::enctype() { 
00043    return DCFenctype_Rtrsmra_double_scalar; 
00044 }
00045 
00046 inline
00047 int DCFencode< Rtrsmra<double,scalar> >::encsizeb() 
00048 { 
00049    return sizeof(double)+1; 
00050 }
00051 
00052 inline
00053 void DCFencode< Rtrsmra<double,scalar> >::quantcoef( const double quantcoef ) 
00054 {
00055    _quantcoef = quantcoef;
00056 };
00057 
00058 inline
00059 double DCFencode< Rtrsmra<double,scalar> >::quantcoef() { return _quantcoef; }
00060 
00061 inline
00062 int DCFencode< Rtrsmra<double,scalar> >::bplen_coef() { return _bplen_coef; }
00063 
00064 #endif
00065 

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