common/interfaces.hh

Go to the documentation of this file.
00001 #ifndef DUNE_ALUGRID_INTERFACES_HH
00002 #define DUNE_ALUGRID_INTERFACES_HH
00003 
00004 #include <dune/common/typetraits.hh>
00005 
00011 namespace Dune {
00012 
00014   struct HasObjectStream {};
00015 
00018   template <bool hasStream, class GridImp, class DefaultImp>
00019   struct GridObjectStreamOrDefaultHelper {
00020     typedef typename GridImp::ObjectStreamType ObjectStreamType;
00021   };
00022   
00025   template <class GridImp, class DefaultImp>
00026   struct GridObjectStreamOrDefaultHelper<false, GridImp, DefaultImp> {
00027     typedef DefaultImp ObjectStreamType;
00028   };
00029 
00031   template <class GridImp, class DefaultImp>
00032   struct GridObjectStreamOrDefault {
00033     typedef typename GridObjectStreamOrDefaultHelper<
00034       Conversion<GridImp, HasObjectStream>::exists, 
00035       GridImp, 
00036       DefaultImp>::ObjectStreamType ObjectStreamType;
00037   };
00038 
00040   struct IsDofManager {};
00041 
00043   struct HasHierarchicIndexSet {};
00044 
00045 } // end namespace Dune
00046 #endif

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].