Dune Core Modules (2.4.2)

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
7
13namespace Dune {
14
16 struct HasObjectStream {};
17
20 template <bool hasStream, class GridImp, class DefaultImp>
22 typedef typename GridImp::InStreamType InStreamType;
23 typedef typename GridImp::OutStreamType OutStreamType;
24 };
25
28 template <class GridImp, class DefaultImp>
29 struct GridObjectStreamOrDefaultHelper<false, GridImp, DefaultImp> {
30 typedef DefaultImp InStreamType;
31 typedef DefaultImp OutStreamType;
32 };
33
35 template <class GridImp, class DefaultImp>
37 {
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
52
53} // end namespace Dune
54#endif
Checks wether a type is convertible to another.
Definition: typetraits.hh:177
Dune namespace.
Definition: alignment.hh:10
Definition: interfaces.hh:21
Template to choose right Object stream type for a given class.
Definition: interfaces.hh:37
Tagging interface to indicate that Grid has HierarchicIndexSet.
Definition: interfaces.hh:51
Tagging interface to indicate that Grid provides typedef ObjectStreamType.
Definition: interfaces.hh:16
Tagging interface to indicate that class is of Type DofManager.
Definition: interfaces.hh:48
Traits for type conversions and type information.
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)