4#ifndef DUNE_GRID_IO_FILE_VTK_BOUNDARYWRITER_HH 
    5#define DUNE_GRID_IO_FILE_VTK_BOUNDARYWRITER_HH 
   11#include <dune/grid/io/file/vtk/basicwriter.hh> 
   22    class NonConformingBoundaryWriter
 
   23      : 
public NonConformingBoundaryIteratorFactory<GV>,
 
   24        public BasicWriter<NonConformingBoundaryIteratorFactory<GV> >
 
   26      typedef NonConformingBoundaryIteratorFactory<GV> Factory;
 
   27      typedef BasicWriter<Factory> Base;
 
   32      NonConformingBoundaryWriter(
const GV& gv_)
 
   33        : Factory(gv_), Base(static_cast<const Factory&>(*this)), gv(gv_)
 
   36      using Base::addCellData;
 
   38      template<
typename Func>
 
   39      void addCellData(
const shared_ptr<Func>& p, 
const std::string& name) {
 
   40        addCellData(shared_ptr<typename Base::FunctionWriter>
 
   41                      (
new SkeletonFunctionWriter<Func>(p, name)));
 
   44      template<
typename Func>
 
   45      void addCellData(Func* p, 
const std::string& name) {
 
   46        addCellData(shared_ptr<Func>(p), name);
 
   49      using Base::addPointData;
 
   51      template<
typename Func>
 
   52      void addPointData(
const shared_ptr<Func>& p, 
const std::string& name) {
 
   53        addPointData(shared_ptr<typename Base::FunctionWriter>
 
   54                       (
new SkeletonFunctionWriter<Func>(p, name)));
 
   57      template<
typename Func>
 
   58      void addPointData(Func* p, 
const std::string& name) {
 
   59        addPointData(shared_ptr<Func>(p), name);
 
Functions for VTK output on the skeleton.
 
Dune namespace.
Definition: alignment.hh:10
 
This file implements the class shared_ptr (a reference counting pointer), for those systems that don'...
 
Functions for VTK output on the skeleton.