capabilities.hh

Go to the documentation of this file.
00001 #ifndef DUNE_CAPABILITIES_HH
00002 #define DUNE_CAPABILITIES_HH
00003 
00008 namespace Dune
00009 {
00010 
00012 namespace Capabilities
00013 {
00014 
00018 template<class Grid, int codim>
00019 struct hasEntity
00020 {
00021   static const bool v = false;
00022 };
00023 
00027 template<class Grid>
00028 struct isParallel
00029 {
00030   static const bool v = false;
00031 };
00032 
00036 template<class Grid>
00037 struct isLevelwiseConforming
00038 {
00039   static const bool v = false;
00040 };
00041 
00045 template<class Grid>
00046 struct isLeafwiseConforming
00047 {
00048   static const bool v = false;
00049 };
00050 
00054 template<class Grid>
00055 struct hasHangingNodes
00056 {
00057   static const bool v = false;
00058 };
00059 
00063 template<class Grid>
00064 struct hasBackupRestoreFacilities
00065 {
00066   static const bool v = false;
00067 };
00068 
00072 template <class Grid>
00073 struct IsUnstructured {
00074   static const bool v = true;
00075 };
00076   
00077 /*
00078   forward
00079   Capabilities::Something<const Grid>
00080   to
00081   Capabilities::Something<Grid>
00082 */
00083 
00084 template<class Grid, int codim>
00085 struct hasEntity<const Grid, codim>
00086 {
00087   static const bool v = Dune::Capabilities::hasEntity<Grid,codim>::v;
00088 };
00089 
00090 template<class Grid>
00091 struct isParallel<const Grid>
00092 {
00093   static const bool v = Dune::Capabilities::isParallel<Grid>::v;
00094 };
00095 
00096 template<class Grid>
00097 struct isLevelwiseConforming<const Grid>
00098 {
00099   static const bool v = Dune::Capabilities::isLevelwiseConforming<Grid>::v;
00100 };
00101 
00102 template<class Grid>
00103 struct isLeafwiseConforming<const Grid>
00104 {
00105   static const bool v = Dune::Capabilities::isLeafwiseConforming<Grid>::v;
00106 };
00107 
00108 template<class Grid>
00109 struct hasHangingNodes<const Grid>
00110 {
00111   static const bool v = Dune::Capabilities::hasHangingNodes<Grid>::v;
00112 };
00113 
00114 template<class Grid>
00115 struct hasBackupRestoreFacilities<const Grid> 
00116 {
00117   static const bool v = Dune::Capabilities::hasBackupRestoreFacilities<Grid>::v;
00118 };
00119 
00120 template <class Grid>
00121 struct IsUnstructured<const Grid> {
00122   static const bool v = Dune::Capabilities::IsUnstructured<Grid>::v;
00123 };
00124   
00125 }
00126 
00127 }
00128 
00129 #endif // DUNE_CAPABILITIES_HH

Generated on 6 Nov 2008 with Doxygen (ver 1.5.6) [logfile].