Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Python_Utils.H

Go to the documentation of this file.
00001 
00002 #ifndef WRAPPER
00003 #include "Vector.H"
00004 #include "Box.H"
00005 #include <string>
00006 #include "DisjointBoxLayout.H"
00007 #include "LevelData.H"
00008 #include "FArrayBox.H"
00009 #include "LDF.H"
00010 #include "parstream.H"
00011 using std::string;
00012 #endif
00013 
00014 #define VECTOR_MACRO(class) \
00015 class& vget_##class(Vector<class>& vector, int index) { return vector[index];} \
00016 ;\
00017 void vset_##class(Vector<class>& vector, int i, class val) { vector[i]=val;} \
00018 ;\
00019 class val_##class(const Vector<class>& vector, int index) { return vector[index];} \
00020 ;\
00021 int vsize_##class(const Vector<class>& vector) { return vector.size();} \
00022 ;\
00023 Vector<class> vcopy_##class(const Vector<class>& vector) {return vector;} \
00024 ;\
00025 void vpush_back_##class(Vector<class>& vec, const class& in){vec.push_back(in);}\
00026 ;\
00027 void vappend_##class(Vector<class>& mod, const Vector<class>& in){mod.append(in);}\
00028 ;\
00029 void vresize_##class(Vector<class>& mod, int s) {mod.resize(s);}\
00030 ;\
00031 Vector<class> vnew_##class(int s) {return Vector<class>(s);}\
00032 
00033 
00034 VECTOR_MACRO(Box);
00035 
00036 VECTOR_MACRO(int);
00037 
00038 VECTOR_MACRO(string);
00039 
00040 VECTOR_MACRO(DisjointBoxLayout);
00041 
00042 VECTOR_MACRO(LDF);

Generated on Wed Apr 16 14:31:05 2003 for EBChombo by doxygen1.2.16