MercuryDPM  Beta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.

Definition at line 44 of file VTKData.h.

Constructor & Destructor Documentation

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

Definition at line 52 of file VTKData.h.

53  : name_(fieldName)
54  {
55  }
template<typename T>
virtual Detail::VTKPointDescriptorEntry< T >::~VTKPointDescriptorEntry ( )
inlinevirtual

Definition at line 57 of file VTKData.h.

58  {
59  }

Member Function Documentation

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().

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

Returns the name associated with this field.

Definition at line 75 of file VTKData.h.

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

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

76  {
77  return name_;
78  }
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().

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

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

Definition at line 46 of file VTKData.h.

Referenced by Detail::VTKPointDescriptorEntry< T >::getName().


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