Commit 28a8ed70 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'feature/remove_forward' into 'master'

remove the central forward declaration

See merge request spraetor/dune-vtk!32
parents ff540bed 992576f8
......@@ -8,7 +8,6 @@
#include <dune/vtk/types.hh>
#include <dune/vtk/filewriter.hh>
#include <dune/vtk/forward.hh>
namespace Dune
{
......
......@@ -9,7 +9,6 @@
#include <dune/common/typeutilities.hh>
#include <dune/vtk/filereader.hh>
#include <dune/vtk/forward.hh>
#include <dune/vtk/types.hh>
// default GridCreator
......@@ -22,9 +21,13 @@ namespace Dune
* Reads .vtu files and constructs a grid from the cells stored in the file
* Additionally, stored data can be read.
*
* \tparam Grid Type of the grid to construct.
* \tparam GridCreator Policy type to control what to pass to a grid factory with
* data given from the file. [ContinuousGridCreator]
*
* Assumption on the file structure: Each XML tag must be on a separate line.
**/
template <class Grid, class GridCreator>
template <class Grid, class GridCreator = Vtk::ContinuousGridCreator<Grid>>
class VtkReader
: public Vtk::FileReader<Grid, VtkReader<Grid, GridCreator>>
{
......
......@@ -7,7 +7,6 @@
#include <vector>
#include <dune/vtk/filewriter.hh>
#include <dune/vtk/forward.hh>
#include <dune/vtk/types.hh>
#include <dune/vtk/utility/filesystem.hh>
#include <dune/vtk/utility/uid.hh>
......
......@@ -12,7 +12,6 @@
#include <dune/grid/geometrygrid.hh>
#include <dune/grid/yaspgrid.hh>
#include <dune/vtk/forward.hh>
#include <dune/vtk/datacollectors/yaspdatacollector.hh>
namespace Dune
......
......@@ -9,7 +9,6 @@
#include <dune/common/parallel/mpihelper.hh>
#include <dune/vtk/filewriter.hh>
#include <dune/vtk/forward.hh>
#include <dune/vtk/function.hh>
#include <dune/vtk/types.hh>
......
......@@ -5,7 +5,6 @@
#include <map>
#include <dune/vtk/filewriter.hh>
#include <dune/vtk/forward.hh>
#include <dune/vtk/function.hh>
#include <dune/vtk/types.hh>
#include <dune/vtk/datacollectors/structureddatacollector.hh>
......@@ -19,7 +18,7 @@ namespace Dune
* Requirement:
* - DataCollector must be a model of \ref StructuredDataCollector
**/
template <class GridView, class DataCollector>
template <class GridView, class DataCollector = Vtk::StructuredDataCollector<GridView>>
class VtkImageDataWriter
: public VtkWriterInterface<GridView, DataCollector>
{
......
......@@ -5,7 +5,6 @@
#include <map>
#include <dune/vtk/filewriter.hh>
#include <dune/vtk/forward.hh>
#include <dune/vtk/function.hh>
#include <dune/vtk/types.hh>
#include <dune/vtk/datacollectors/structureddatacollector.hh>
......@@ -19,7 +18,7 @@ namespace Dune
* Requirement:
* - DataCollector must be a model of \ref StructuredDataCollector
**/
template <class GridView, class DataCollector>
template <class GridView, class DataCollector = Vtk::StructuredDataCollector<GridView>>
class VtkRectilinearGridWriter
: public VtkWriterInterface<GridView, DataCollector>
{
......
......@@ -5,7 +5,6 @@
#include <map>
#include <dune/vtk/filewriter.hh>
#include <dune/vtk/forward.hh>
#include <dune/vtk/function.hh>
#include <dune/vtk/types.hh>
#include <dune/vtk/datacollectors/structureddatacollector.hh>
......@@ -19,7 +18,7 @@ namespace Dune
* Requirement:
* - DataCollector must be a model of \ref StructuredDataCollector
**/
template <class GridView, class DataCollector>
template <class GridView, class DataCollector = Vtk::StructuredDataCollector<GridView>>
class VtkStructuredGridWriter
: public VtkWriterInterface<GridView, DataCollector>
{
......
......@@ -5,7 +5,6 @@
#include <map>
#include <dune/vtk/filewriter.hh>
#include <dune/vtk/forward.hh>
#include <dune/vtk/function.hh>
#include <dune/vtk/types.hh>
#include <dune/vtk/datacollectors/continuousdatacollector.hh>
......@@ -19,7 +18,7 @@ namespace Dune
* Requirement:
* - DataCollector must be a model of \ref DataCollector
**/
template <class GridView, class DataCollector>
template <class GridView, class DataCollector = Vtk::ContinuousDataCollector<GridView>>
class VtkUnstructuredGridWriter
: public VtkWriterInterface<GridView, DataCollector>
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment