dune-grid
2.11
Toggle main menu visibility
Loading...
Searching...
No Matches
dune
grid
common
common/backuprestore.hh
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
2
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
3
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4
// vi: set et ts=4 sw=2 sts=2:
5
#ifndef DUNE_GRID_COMMON_BACKUPRESTORE_HH
6
#define DUNE_GRID_COMMON_BACKUPRESTORE_HH
7
8
#include <dune/common/exceptions.hh>
9
10
namespace
Dune
11
{
12
41
template
<
class
Gr
id
>
42
struct
BackupRestoreFacility
43
{
51
static
void
backup
(
const
Grid
&
/*grid*/
,
const
std::string &
/*filename*/
)
52
{
53
DUNE_THROW( NotImplemented,
"backup / restore not implemented."
);
54
}
55
65
static
void
backup
(
const
Grid
&
/*grid*/
, std::ostream &
/*stream*/
)
66
{
67
DUNE_THROW( NotImplemented,
"backup / restore not implemented."
);
68
}
69
78
static
Grid
*
restore
(
const
std::string &
/*filename*/
)
79
{
80
DUNE_THROW( NotImplemented,
"backup / restore not implemented."
);
81
}
82
91
static
Grid
*
restore
( std::istream &
/*stream*/
)
92
{
93
DUNE_THROW( NotImplemented,
"backup / restore not implemented."
);
94
}
95
};
96
100
template
<
class
Gr
id
>
101
struct
BackupRestoreFacility
< const
Grid
>
102
:
public
BackupRestoreFacility
< Grid >
103
{};
104
105
}
// namespace Dune
106
107
#endif
// #ifndef DUNE_GRID_COMMON_BACKUPRESTORE_HH
Dune
Include standard header files.
Definition
agrid.hh:60
Dune::BackupRestoreFacility
facility for writing and reading grids
Definition
common/backuprestore.hh:43
Dune::BackupRestoreFacility::restore
static Grid * restore(const std::string &)
read a hierarchic grid from disk
Definition
common/backuprestore.hh:78
Dune::BackupRestoreFacility::restore
static Grid * restore(std::istream &)
read a hierarchic grid from a stream
Definition
common/backuprestore.hh:91
Dune::BackupRestoreFacility::backup
static void backup(const Grid &, std::ostream &)
write a hierarchic grid into a stream
Definition
common/backuprestore.hh:65
Dune::BackupRestoreFacility::backup
static void backup(const Grid &, const std::string &)
write a hierarchic grid to disk
Definition
common/backuprestore.hh:51
Dune::Grid
Grid abstract base class.
Definition
common/grid.hh:375
Generated by
1.17.0