Loading...
Searching...
No Matches
Public Member Functions | List of all members
bitpit::VTKNativeStreamer Class Reference

In VTKNativeStreamer all instances of classes derived from VTKBaseConatiner are stored. Right now only std::vector is supported. More...

Inheritance diagram for bitpit::VTKNativeStreamer:
Inheritance graph
[legend]
Collaboration diagram for bitpit::VTKNativeStreamer:
Collaboration graph
[legend]

Public Member Functions

 VTKNativeStreamer ()
 
 VTKNativeStreamer (const VTKNativeStreamer &)
 
 VTKNativeStreamer (VTKNativeStreamer &&)=default
 
void absorbData (std::fstream &, const std::string &, VTKFormat, uint64_t, uint8_t, VTKDataType) override
 
template<class T >
void addData (const std::string &, std::vector< T > &)
 
void flushData (std::fstream &, const std::string &, VTKFormat) override
 
bool hasData (const std::string &) const
 
VTKNativeStreameroperator= (const VTKNativeStreamer &other)
 
VTKNativeStreameroperator= (VTKNativeStreamer &&other)=default
 
void removeData (const std::string &)
 
- Public Member Functions inherited from bitpit::VTKBaseStreamer
template<typename T >
void flushValue (std::fstream &, VTKFormat, const T &value) const
 
template<typename T >
void flushValue (std::fstream &, VTKFormat, const T *values, int nValues) const
 

Detailed Description

In VTKNativeStreamer all instances of classes derived from VTKBaseConatiner are stored. Right now only std::vector is supported.

Definition at line 226 of file VTK.hpp.

Constructor & Destructor Documentation

◆ VTKNativeStreamer() [1/2]

bitpit::VTKNativeStreamer::VTKNativeStreamer ( )

Constructor

Definition at line 92 of file VTKStreamer.cpp.

◆ VTKNativeStreamer() [2/2]

bitpit::VTKNativeStreamer::VTKNativeStreamer ( const VTKNativeStreamer & other)

Copy constructor

Definition at line 99 of file VTKStreamer.cpp.

Member Function Documentation

◆ absorbData()

void bitpit::VTKNativeStreamer::absorbData ( std::fstream & str,
const std::string & name,
VTKFormat format,
uint64_t entries,
uint8_t components,
VTKDataType datatype )
overridevirtual

Reads data from stream

Parameters
[in]strfile stream for reading
[in]namename of field
[in]formatASCII or BINARY format
[in]entriestotal number of entries to be read
[in]componentssize of groups
[in]datatypetype of data of your current field

Implements bitpit::VTKBaseStreamer.

Definition at line 177 of file VTKStreamer.cpp.

◆ addData()

template<class T >
void bitpit::VTKNativeStreamer::addData ( const std::string & name,
std::vector< T > & data )

Adds data strored in std::vector<> to NativeStreamer

Template Parameters
Ttype of std::vector<>
Parameters
[in]namename of data set
[in]datastd::vector containing the data

Definition at line 180 of file VTKStreamer.tpp.

◆ flushData()

void bitpit::VTKNativeStreamer::flushData ( std::fstream & str,
const std::string & name,
VTKFormat format )
overridevirtual

Writes data to stream

Parameters
[in]strfile stream for writing
[in]namename of field
[in]formatASCII or BINARY format

Implements bitpit::VTKBaseStreamer.

Definition at line 158 of file VTKStreamer.cpp.

◆ hasData()

bool bitpit::VTKNativeStreamer::hasData ( const std::string & name) const

Check if the streamer constains the specified field

Parameters
[in]namename of field

Definition at line 140 of file VTKStreamer.cpp.

◆ operator=()

VTKNativeStreamer & bitpit::VTKNativeStreamer::operator= ( const VTKNativeStreamer & other)

Copy assignment operator.

Parameters
otheris antoher container of the same type, whose contents will be used to initialize the current container

Definition at line 113 of file VTKStreamer.cpp.

◆ removeData()

void bitpit::VTKNativeStreamer::removeData ( const std::string & name)

Removes a field from streamer

Parameters
[in]namename of field

Definition at line 126 of file VTKStreamer.cpp.


The documentation for this class was generated from the following files:
--- layout: doxygen_footer ---