Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
9e0930e8
Commit
9e0930e8
authored
15 years ago
by
Andreas Dedner
Browse files
Options
Downloads
Patches
Plain Diff
moved interface.hh from dune-common to alugrid (FS465)
[[Imported from SVN: r5588]]
parent
e124572c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/interfaces.hh
+0
-64
0 additions, 64 deletions
common/interfaces.hh
with
0 additions
and
64 deletions
common/interfaces.hh
deleted
100644 → 0
+
0
−
64
View file @
e124572c
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_INTERFACES_HH
#define DUNE_INTERFACES_HH
#include
"typetraits.hh"
/** @file
@author Robert Kloefkorn
@brief Provides a Interfaces for detection of specific behavior
*/
namespace
Dune
{
//! An interface class for cloneable objects
struct
Cloneable
{
/** \brief Clones the object
clone needs to be redefined by an implementation class, with the
return type covariantly adapted. Remember to
delete the resulting pointer.
*/
virtual
Cloneable
*
clone
()
const
=
0
;
/** \brief Destructor */
virtual
~
Cloneable
()
{}
};
//! Tagging interface to indicate that Grid provides typedef ObjectStreamType
struct
HasObjectStream
{};
//! Helper template (implicit specialisation if GridImp exports an object
//! stream
template
<
bool
hasStream
,
class
GridImp
,
class
DefaultImp
>
struct
GridObjectStreamOrDefaultHelper
{
typedef
typename
GridImp
::
ObjectStreamType
ObjectStreamType
;
};
//! Helper template (explicit specialisation if GridImp doesn't export an
//! object stream -> DefaultImplementation is exported)
template
<
class
GridImp
,
class
DefaultImp
>
struct
GridObjectStreamOrDefaultHelper
<
false
,
GridImp
,
DefaultImp
>
{
typedef
DefaultImp
ObjectStreamType
;
};
//! Template to choose right Object stream type for a given class
template
<
class
GridImp
,
class
DefaultImp
>
struct
GridObjectStreamOrDefault
{
typedef
typename
GridObjectStreamOrDefaultHelper
<
Conversion
<
GridImp
,
HasObjectStream
>::
exists
,
GridImp
,
DefaultImp
>::
ObjectStreamType
ObjectStreamType
;
};
//! Tagging interface to indicate that class is of Type DofManager
struct
IsDofManager
{};
//! Tagging interface to indicate that Grid has HierarchicIndexSet
struct
HasHierarchicIndexSet
{};
}
// end namespace Dune
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment