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

DCFencode_Rtrsmra_double_array.h

Go to the documentation of this file.
00001 // DCFencode_Rtrsmra_double_array.h
00002 //////////////////////////////////////////////////////////////////////
00003 //          (c) Copyright 2001-2002 Brown Deer Technology, LLC.
00004 //                        All rights reserved.
00005 //////////////////////////////////////////////////////////////////////
00006 
00007 #ifndef DCFENCODE_RTRSMRA_DOUBLE_ARRAY_H
00008 #define DCFENCODE_RTRSMRA_DOUBLE_ARRAY_H
00009 
00010 #include "RtmraDim.h"
00011 template <typename Data_t, Rtmra_Dim Dim> class Rtrsmra;
00012 
00013 template <>
00014 class DCFencode< Rtrsmra<double,array> > : 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       inline void amax( const int );
00024       inline int amax();
00025       inline void bplen_a( const int );
00026       inline int bplen_a();
00027 
00028       void descr( ostream& = cout );
00029 
00030    protected:
00031       double _quantcoef;
00032       int _bplen_coef;
00033       int _amax;
00034       int _bplen_a;
00035    
00036    friend 
00037       ostream& operator << ( ostream&, DCFencode& );
00038 
00039    friend 
00040       istream& operator >> ( istream&, DCFencode& );
00041 
00042 };
00043 
00044 inline
00045 DCFencode< Rtrsmra<double,array> >::DCFencode () 
00046   : _quantcoef(0), _bplen_coef(sizeof(double)), _amax(1), _bplen_a(1) {}
00047 
00048 inline
00049 int DCFencode< Rtrsmra<double,array> >::enctype() 
00050 { 
00051    return DCFenctype_Rtrsmra_double_array; 
00052 }
00053 
00054 inline
00055 int DCFencode< Rtrsmra<double,array> >::encsizeb() 
00056 { 
00057    return sizeof(double)+1+sizeof(int)+1; 
00058 }
00059 
00060 inline 
00061 void DCFencode< Rtrsmra<double,array> >::quantcoef(const double quantcoef) 
00062 {
00063    _quantcoef=quantcoef;
00064 }
00065 
00066 inline
00067 double DCFencode< Rtrsmra<double,array> >::quantcoef() { return _quantcoef; }
00068 
00069 inline
00070 int DCFencode< Rtrsmra<double,array> >::bplen_coef() { return _bplen_coef; }
00071 
00072 inline
00073 void DCFencode< Rtrsmra<double,array> >::amax(const int amax) { _amax=amax; };
00074 
00075 inline
00076 int DCFencode< Rtrsmra<double,array> >::amax() { return _amax; }
00077 
00078 inline
00079 void DCFencode< Rtrsmra<double,array> >::bplen_a(const int bplen_a) 
00080 {
00081    _bplen_a = bplen_a;
00082 }; 
00083 
00084 inline
00085 int DCFencode< Rtrsmra<double,array> >::bplen_a() { return _bplen_a; }
00086 
00087 #endif
00088 

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