BackupRestoreFacility taking const Grid as type and deriving from the version with the const.
More...
#include <dune/grid/common/backuprestore.hh>
Static Public Member Functions |
static void | backup (const Grid &grid, const std::string &filename) |
| write a hierarchic grid to disk
|
static void | backup (const Grid &grid, std::ostream &stream) |
| write a hierarchic grid into a stream
|
static Grid * | restore (const std::string &filename) |
| read a hierarchic grid from disk
|
static Grid * | restore (std::istream &stream) |
| read a hierarchic grid from a stream
|
Detailed Description
template<class Grid>
struct Dune::BackupRestoreFacility< const Grid >
BackupRestoreFacility taking const Grid as type and deriving from the version with the const.
Member Function Documentation
write a hierarchic grid into a stream
- Parameters
-
[in] | grid | grid to write |
[in] | stream | std::stream to write the grid to |
- Note
- While operating on a std::ostream might be convenient, a grid written in another language than C++ might need to emulate this method by writing through a temporary file.
read a hierarchic grid from a stream
- Parameters
-
[in] | stream | std::stream to read the grid from |
- Note
- While operating on a std::istream might be convenient, a grid written in another language than C++ might need to emulate this method by writing through a temporary file.
The documentation for this struct was generated from the following file: