FieldArray.h

00001 #ifndef gridripper_amr1d_FieldArray_h
00002 #define gridripper_amr1d_FieldArray_h
00003 
00004 #include "FieldWrapper.h"
00005 #include <gridripper/tvalarray.h>
00006 
00007 namespace gridripper { namespace amr1d {
00008 
00009 using namespace std;
00010 
00018 class FieldArray
00019 {
00020 private:
00021     tvalarray<const FieldWrapper*> theData;
00022 
00023 public:
00025     FieldArray(int n): theData(n) {
00026     }
00027 
00029     FieldArray(const FieldArray& other);
00030 
00031     virtual ~FieldArray();
00032 
00033     unsigned size() const {
00034         return theData.size();
00035     }
00036 
00037     void set(unsigned i, const FieldWrapper& v);
00038 
00039     const FieldWrapper& operator [](int i) const {
00040         return *theData[i];
00041     }
00042 };
00043 
00044 } } // namespace gridripper::amr1d
00045 
00046 #endif /* gridripper_amr1d_FieldArray_h */

Generated on Wed Jun 17 18:46:47 2009 for GridRipper by  doxygen 1.5.6