dune-grid
2.3.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
grid
alugrid
common
interfaces.hh
Go to the documentation of this file.
1
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2
// vi: set et ts=4 sw=2 sts=2:
3
#ifndef DUNE_ALUGRID_INTERFACES_HH
4
#define DUNE_ALUGRID_INTERFACES_HH
5
6
#include <dune/common/typetraits.hh>
7
13
namespace
Dune {
14
16
struct
HasObjectStream
{};
17
20
template
<
bool
hasStream,
class
Gr
id
Imp,
class
DefaultImp>
21
struct
GridObjectStreamOrDefaultHelper
{
22
typedef
typename
GridImp::InStreamType
InStreamType
;
23
typedef
typename
GridImp::OutStreamType
OutStreamType
;
24
};
25
28
template
<
class
Gr
id
Imp,
class
DefaultImp>
29
struct
GridObjectStreamOrDefaultHelper
<false, GridImp, DefaultImp> {
30
typedef
DefaultImp
InStreamType
;
31
typedef
DefaultImp
OutStreamType
;
32
};
33
35
template
<
class
Gr
id
Imp,
class
DefaultImp>
36
struct
GridObjectStreamOrDefault
37
{
38
typedef
GridObjectStreamOrDefaultHelper
<
39
Conversion<GridImp, HasObjectStream>::exists,
40
GridImp,
41
DefaultImp>
GridObjectStreamTraits
;
42
43
typedef
typename
GridObjectStreamTraits :: InStreamType
InStreamType
;
// read stream
44
typedef
typename
GridObjectStreamTraits :: OutStreamType
OutStreamType
;
// write stream
45
};
46
48
struct
IsDofManager
{};
49
51
struct
HasHierarchicIndexSet
{};
52
53
}
// end namespace Dune
54
#endif
Generated on Mon Nov 24 2014 21:02:50 for dune-grid by
1.8.1.2