dune-grid  2.2.1
Public Member Functions | List of all members
Dune::VTK::AppendedRawDataArrayWriter< T > Class Template Reference

a streaming writer for data array tags, uses appended raw format More...

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

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

Public Member Functions

 AppendedRawDataArrayWriter (std::ostream &s, std::string name, int ncomps, unsigned nitems, unsigned &offset, const Indent &indent)
 make a new data array writer More...
 
void write (T data)
 write one data element to output stream (noop) More...
 
bool writeIsNoop () const
 whether calls to write may be skipped More...
 

Detailed Description

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

a streaming writer for data array tags, uses appended raw format

Constructor & Destructor Documentation

template<class T>
Dune::VTK::AppendedRawDataArrayWriter< T >::AppendedRawDataArrayWriter ( std::ostream &  s,
std::string  name,
int  ncomps,
unsigned  nitems,
unsigned &  offset,
const Indent &  indent 
)
inline

make a new data array writer

Parameters
sStream to write to.
nameName of array to write.
ncompsNumber of components of the array.
nitemsNumber of cells for cell data/Number of vertices for point data.
offsetByte count variable: this is incremented by one for each byte which has to written to the appended data section later.
indentIndentation to use. This is uses as-is for the header line.

Member Function Documentation

template<class T>
void Dune::VTK::AppendedRawDataArrayWriter< T >::write ( data)
inlinevirtual

write one data element to output stream (noop)

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

template<class T>
bool Dune::VTK::AppendedRawDataArrayWriter< T >::writeIsNoop ( ) const
inlinevirtual

whether calls to write may be skipped

Reimplemented from Dune::VTK::DataArrayWriter< T >.


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