Loading...
Searching...
No Matches
Public Member Functions | List of all members
bitpit::VTKVectorContainer< T > Class Template Reference

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

Inheritance diagram for bitpit::VTKVectorContainer< T >:
Inheritance graph
[legend]
Collaboration diagram for bitpit::VTKVectorContainer< T >:
Collaboration graph
[legend]

Public Member Functions

 VTKVectorContainer (std::vector< T > &)
 
void absorbData (std::fstream &, VTKFormat, uint64_t, uint8_t) override
 
VTKVectorContainerclone () 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)
 
- Public Member Functions inherited from bitpit::VTKBaseContainer
 VTKBaseContainer ()
 

Detailed Description

template<class T>
class bitpit::VTKVectorContainer< T >

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

Definition at line 194 of file VTK.hpp.

Constructor & Destructor Documentation

◆ VTKVectorContainer()

template<class T >
bitpit::VTKVectorContainer< T >::VTKVectorContainer ( std::vector< T > & data)

Constructor assigns container reference to internal pointer

Template Parameters
Ttype of std::vector<>
Parameters
[in]datadata container

Definition at line 48 of file VTKStreamer.tpp.

Member Function Documentation

◆ absorbData()

template<class T >
void bitpit::VTKVectorContainer< T >::absorbData ( std::fstream & str,
VTKFormat format,
uint64_t entries,
uint8_t components )
overridevirtual

Reads data from file stream

Template Parameters
Ttype of std::vector<>
Parameters
[in]strfile stream
[in]formatVTKFormat::ASCII or VTKFormat::APPENDED
[in]entriestotal number of entries to be read
[in]componentssize of inner chunks

Implements bitpit::VTKBaseContainer.

Definition at line 127 of file VTKStreamer.tpp.

◆ clone()

template<class T >
VTKVectorContainer< T > * bitpit::VTKVectorContainer< T >::clone ( ) const
overridevirtual

Clones the object

Returns
pointer to cloned object

Implements bitpit::VTKBaseContainer.

Definition at line 38 of file VTKStreamer.tpp.

◆ flushData()

template<class T >
void bitpit::VTKVectorContainer< T >::flushData ( std::fstream & str,
VTKFormat format )
overridevirtual

Writes data to file stream

Template Parameters
Ttype of std::vector<>
Parameters
[in]strfile stream
[in]formatVTKFormat::ASCII or VTKFormat::APPENDED

Implements bitpit::VTKBaseContainer.

Definition at line 103 of file VTKStreamer.tpp.

◆ resize() [1/2]

template<class T >
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
Ttype of std::vector<>
Parameters
[in]entriestotal number of entries to be read
[in]componentssize of inner chunks

Definition at line 162 of file VTKStreamer.tpp.

◆ resize() [2/2]

template<class T >
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
Ttype of std::vector<>
Parameters
[in]entriestotal number of entries to be read
[in]componentssize of inner chunks

Definition at line 148 of file VTKStreamer.tpp.


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