Implementation of VTKBaseContainer in order to support natively std::vector in VTK. More...


Public Member Functions | |
VTKVectorContainer (std::vector< T > &) | |
void | absorbData (std::fstream &, VTKFormat, uint64_t, uint8_t) override |
VTKVectorContainer * | clone () const override |
void | flushData (std::fstream &, VTKFormat) override |
void | resize (std::false_type, uint64_t, uint8_t) |
void | resize (std::true_type, uint64_t, uint8_t) |
![]() | |
VTKBaseContainer () | |
Detailed Description
class bitpit::VTKVectorContainer< T >
Implementation of VTKBaseContainer in order to support natively std::vector in VTK.
Constructor & Destructor Documentation
◆ VTKVectorContainer()
bitpit::VTKVectorContainer< T >::VTKVectorContainer | ( | std::vector< T > & | data | ) |
Constructor assigns container reference to internal pointer
- Template Parameters
-
T type of std::vector<>
- Parameters
-
[in] data data container
Definition at line 48 of file VTKStreamer.tpp.
Member Function Documentation
◆ absorbData()
|
overridevirtual |
Reads data from file stream
- Template Parameters
-
T type of std::vector<>
- Parameters
-
[in] str file stream [in] format VTKFormat::ASCII or VTKFormat::APPENDED [in] entries total number of entries to be read [in] components size of inner chunks
Implements bitpit::VTKBaseContainer.
Definition at line 127 of file VTKStreamer.tpp.
◆ clone()
|
overridevirtual |
Clones the object
- Returns
- pointer to cloned object
Implements bitpit::VTKBaseContainer.
Definition at line 38 of file VTKStreamer.tpp.
◆ flushData()
|
overridevirtual |
Writes data to file stream
- Template Parameters
-
T type of std::vector<>
- Parameters
-
[in] str file stream [in] format VTKFormat::ASCII or VTKFormat::APPENDED
Implements bitpit::VTKBaseContainer.
Definition at line 103 of file VTKStreamer.tpp.
◆ resize() [1/2]
void bitpit::VTKVectorContainer< T >::resize | ( | std::false_type | , |
uint64_t | entries, | ||
uint8_t | components ) |
Overloaded version of resize for std::vector<non_fundamental_type>
- Template Parameters
-
T type of std::vector<>
- Parameters
-
[in] entries total number of entries to be read [in] components size of inner chunks
Definition at line 162 of file VTKStreamer.tpp.
◆ resize() [2/2]
void bitpit::VTKVectorContainer< T >::resize | ( | std::true_type | , |
uint64_t | entries, | ||
uint8_t | components ) |
Overloaded version of resize for std::vector<fundamental_type>
- Template Parameters
-
T type of std::vector<>
- Parameters
-
[in] entries total number of entries to be read [in] components size of inner chunks
Definition at line 148 of file VTKStreamer.tpp.
The documentation for this class was generated from the following files:
- src/IO/VTK.hpp
- src/IO/VTKStreamer.tpp
