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

MRAacoef.h

Go to the documentation of this file.
00001 // MRAacoef.h
00002 //////////////////////////////////////////////////////////////////////
00003 //          (c) Copyright 2002 Brown Deer Technology, LLC.
00004 //                        All rights reserved.
00005 //////////////////////////////////////////////////////////////////////
00006 
00007 #ifndef MRAACOEF_H
00008 #define MRAACOEF_H
00009 
00010 #ifdef USE_STD
00011 #include <iostream>
00012 using namespace std;
00013 #else
00014 #include <iostream.h>
00015 #endif
00016 
00017 #include "utility.h"
00018 
00019 #ifndef MRA_MAXDIM
00020 #define MRA_MAXDIM 4
00021 #endif
00022 
00023 struct MRAacoef
00024 {
00025    MRAacoef();
00026    MRAacoef( int dim0 );
00027    MRAacoef& operator () ( int dim0 );
00028    MRAacoef& operator = ( const MRAacoef& );
00029    int dim;
00030    int a[MRA_MAXDIM];
00031    bytepack bpcoef;
00032 };
00033 
00034 inline
00035 MRAacoef::MRAacoef() : dim(0) {}
00036 
00037 inline
00038 MRAacoef::MRAacoef( int dim0 ) : dim(dim0) {}
00039 
00040 inline
00041 MRAacoef& MRAacoef::operator () ( int dim0 )
00042 {
00043    dim = dim0;
00044    return *this;
00045 }
00046 
00047 inline
00048 MRAacoef& MRAacoef::operator = ( const MRAacoef& acoef0 )
00049 {
00050    dim = acoef0.dim;
00051    for( int d = 0; d < dim; ++d ) a[d] = acoef0.a[d];
00052    bpcoef = acoef0.bpcoef;
00053    return *this;
00054 }
00055 
00056 #endif
00057 

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