GridField.hpp

00001 #ifndef __FIBER_BASEOP_GRIDFIELD_HPP
00002 #define __FIBER_BASEOP_GRIDFIELD_HPP
00003 
00004 #include "gridopDllApi.h"
00005 #include <bundle/Bundle.hpp>
00006 #include <bundle/FieldSelector.hpp>
00007 
00008 
00009 namespace Fiber
00010 {
00011 
00016 struct  gridop_API      GridField
00017 {
00018         RefPtr<Grid>    theGrid;
00019         RefPtr<Field>   theField;
00020 
00021         GridField(const GridSelector&GS, const FieldSelector&FS, double time, const Fiber::BundlePtr&SpaceTime = Fiber::BundlePtr(NullPtr() ) );
00022 
00023         RefPtr<Grid>    getGrid() const         { return theGrid; }
00024         RefPtr<Field>   getField() const        { return theField; }
00025 
00026         operator RefPtr<Grid>   () const { return getGrid();  }
00027         operator RefPtr<Field>  () const { return getField(); }
00028 };
00029 
00030 }
00031 
00032 #endif // __FIBER_BASEOP_GRIDFIELD_HPP