Detail::VTKPointDescriptorEntry< T > Class Template Referenceabstract

#include <VTKData.h>

+ Inheritance diagram for Detail::VTKPointDescriptorEntry< T >:

Public Member Functions

 VTKPointDescriptorEntry (std::string fieldName)
 initialises this data member with given name. More...
 
virtual ~VTKPointDescriptorEntry ()
 
virtual void emit (std::ostream &out, const T &t) const =0
 writes this VTKData to the given output stream for a single T More...
 
virtual std::string getTypeName () const =0
 Gives the VTKDataType for VTK. More...
 
std::string getName () const
 Returns the name associated with this field. More...
 
virtual std::size_t getNumberOfComponents () const =0
 Returns the number of components in this type. More...
 

Private Attributes

std::string name_
 

Detailed Description

template<typename T>
class Detail::VTKPointDescriptorEntry< T >

Type-erased Internal storage class for a single datamember.

Constructor & Destructor Documentation

◆ VTKPointDescriptorEntry()

template<typename T >
Detail::VTKPointDescriptorEntry< T >::VTKPointDescriptorEntry ( std::string  fieldName)
inline

initialises this data member with given name.

Parameters
fieldNameName of the VTK output field
54  : name_(fieldName)
55  {
56  }
std::string name_
Definition: Tools/VTKData.h:47

◆ ~VTKPointDescriptorEntry()

template<typename T >
virtual Detail::VTKPointDescriptorEntry< T >::~VTKPointDescriptorEntry ( )
inlinevirtual
59  {
60  }

Member Function Documentation

◆ emit()

template<typename T >
virtual void Detail::VTKPointDescriptorEntry< T >::emit ( std::ostream &  out,
const T &  t 
) const
pure virtual

writes this VTKData to the given output stream for a single T

Parameters
outthe output stream
tthe backing dataobject

Implemented in Detail::VTKPointDescriptorEntryImpl< T, V >.

Referenced by VTKUnstructuredGrid< T >::write().

◆ getName()

template<typename T >
std::string Detail::VTKPointDescriptorEntry< T >::getName ( ) const
inline

Returns the name associated with this field.

77  {
78  return name_;
79  }

References Detail::VTKPointDescriptorEntry< T >::name_.

Referenced by VTKUnstructuredGrid< T >::write().

◆ getNumberOfComponents()

template<typename T >
virtual std::size_t Detail::VTKPointDescriptorEntry< T >::getNumberOfComponents ( ) const
pure virtual

Returns the number of components in this type.

Implemented in Detail::VTKPointDescriptorEntryImpl< T, V >.

Referenced by VTKUnstructuredGrid< T >::write().

◆ getTypeName()

template<typename T >
virtual std::string Detail::VTKPointDescriptorEntry< T >::getTypeName ( ) const
pure virtual

Gives the VTKDataType for VTK.

Returns
the VTK datatype in string format.

Implemented in Detail::VTKPointDescriptorEntryImpl< T, V >.

Referenced by VTKUnstructuredGrid< T >::write().

Member Data Documentation

◆ name_

template<typename T >
std::string Detail::VTKPointDescriptorEntry< T >::name_
private

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