dune-grid  2.2.1
Public Types | Public Member Functions | Static Public Attributes | List of all members
Dune::DGFWriter< GV > Class Template Reference

write a GridView to a DGF file More...

#include <dune/grid/io/file/dgfparser/dgfwriter.hh>

Public Types

typedef GV GridView
 type of grid view More...
 
typedef GridView::Grid Grid
 type of underlying hierarchical grid More...
 

Public Member Functions

 DGFWriter (const GridView &gridView)
 constructor More...
 
void write (std::ostream &gridout) const
 write the GridView into a std::ostreamm More...
 
void write (const std::string &fileName) const
 write the GridView to a file More...
 

Static Public Attributes

static const int dimGrid = GridView::dimension
 dimension of the grid More...
 

Detailed Description

template<class GV>
class Dune::DGFWriter< GV >

write a GridView to a DGF file

The DGFWriter allows create a DGF file from a given GridView. It allows for the easy creation of file format converters.

Template Parameters
GVGridView to write in DGF format

Member Typedef Documentation

template<class GV>
typedef GridView::Grid Dune::DGFWriter< GV >::Grid

type of underlying hierarchical grid

template<class GV>
typedef GV Dune::DGFWriter< GV >::GridView

type of grid view

Constructor & Destructor Documentation

template<class GV>
Dune::DGFWriter< GV >::DGFWriter ( const GridView gridView)
inline

constructor

Parameters
[in]gridViewgrid view to operate on

Member Function Documentation

template<class GV >
void Dune::DGFWriter< GV >::write ( std::ostream &  gridout) const
inline

write the GridView into a std::ostreamm

Parameters
gridoutstd::ostream to write the grid to

Referenced by main().

template<class GV >
void Dune::DGFWriter< GV >::write ( const std::string &  fileName) const
inline

write the GridView to a file

Parameters
[in]fileNamename of the write to write the grid to

Member Data Documentation

template<class GV>
const int Dune::DGFWriter< GV >::dimGrid = GridView::dimension
static

dimension of the grid


The documentation for this class was generated from the following file: