dune-grid  2.2.0
Public Member Functions
Dune::VTK::AsciiDataArrayWriter< T > Class Template Reference

a streaming writer for data array tags, uses ASCII inline format More...

#include <dune/grid/io/file/vtk/dataarraywriter.hh>

Inheritance diagram for Dune::VTK::AsciiDataArrayWriter< T >:
Dune::VTK::DataArrayWriter< T >

List of all members.

Public Member Functions

 AsciiDataArrayWriter (std::ostream &theStream, std::string name, int ncomps, const Indent &indent_)
 make a new data array writer
void write (T data)
 write one data element to output stream
 ~AsciiDataArrayWriter ()
 finish output; writes end tag
virtual bool writeIsNoop () const
 whether calls to write may be skipped

Detailed Description

template<class T>
class Dune::VTK::AsciiDataArrayWriter< T >

a streaming writer for data array tags, uses ASCII inline format


Constructor & Destructor Documentation

template<class T>
Dune::VTK::AsciiDataArrayWriter< T >::AsciiDataArrayWriter ( std::ostream &  theStream,
std::string  name,
int  ncomps,
const Indent &  indent_ 
) [inline]

make a new data array writer

Parameters:
theStreamStream to write to.
nameName of array to write.
ncompsNumber of components of the array.
indent_Indentation to use. This is use as-is for the header and trailer lines, but increase by one level for the actual data.
template<class T>
Dune::VTK::AsciiDataArrayWriter< T >::~AsciiDataArrayWriter ( ) [inline]

finish output; writes end tag


Member Function Documentation

template<class T>
void Dune::VTK::AsciiDataArrayWriter< T >::write ( data) [inline, virtual]

write one data element to output stream

Implements Dune::VTK::DataArrayWriter< T >.

template<class T >
virtual bool Dune::VTK::DataArrayWriter< T >::writeIsNoop ( ) const [inline, virtual, inherited]

whether calls to write may be skipped

Reimplemented in Dune::VTK::AppendedBase64DataArrayWriter< T >, and Dune::VTK::AppendedRawDataArrayWriter< T >.


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