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

VTK data types handling. More...

Static Public Member Functions

template<typename T >
static VTKDataType registerType ()
 
template<typename T >
static VTKDataType registerType (VTKDataType VTKType)
 
static uint8_t sizeOfType (VTKDataType type)
 
template<typename T , int nesting = 0, typename std::enable_if< std::is_pod< T >::value &&!utils::is_iterable< T >::value >::type * = nullptr>
static VTKDataType whichType ()
 
template<typename T , int nesting = 0, typename std::enable_if< utils::is_iterable< T >::value >::type * = nullptr>
static VTKDataType whichType ()
 
static VTKDataType whichType (const std::type_info &)
 

Detailed Description

VTK data types handling.

Definition at line 156 of file VTK.hpp.

Member Function Documentation

◆ registerType() [1/2]

template<typename T >
VTKDataType bitpit::VTKTypes::registerType ( )
static

Registers a type that will be used by the VTK functions

Template Parameters
Tis the type that will be registered

Definition at line 36 of file VTKTypes.tpp.

◆ registerType() [2/2]

template<typename T >
VTKDataType bitpit::VTKTypes::registerType ( VTKDataType VTKType)
static

Registers a type that will be used by the VTK functions

Template Parameters
Tis the type that will be registered
Parameters
[in]VTKTypeis the VTK type that will be associated with the specified

Definition at line 98 of file VTKTypes.tpp.

◆ sizeOfType()

uint8_t bitpit::VTKTypes::sizeOfType ( VTKDataType type)
static

Calculates the size in bytes of basic types supported by VTK

Parameters
[in]typetype of data [ VTKDataType::[[U]Int[8/16/32/64] / Float[32/64] ] ]
Returns
size of basic type

Definition at line 67 of file VTKTypes.cpp.

◆ whichType() [1/2]

template<typename T , int nesting, typename std::enable_if< utils::is_iterable< T >::value >::type * >
VTKDataType bitpit::VTKTypes::whichType ( )
static

Determines the basic VTK type from argument.

Template Parameters
Ttype of argument
nestinglevel of nesting
Returns
basic VTK type

Definition at line 117 of file VTKTypes.tpp.

◆ whichType() [2/2]

VTKDataType bitpit::VTKTypes::whichType ( const std::type_info & typeInfo)
static

Determines the basic VTK type from argument.

Parameters
[in]typeInfoargument type
Returns
basic VTK type

Definition at line 102 of file VTKTypes.cpp.


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