MercuryDPM  Trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Detail Namespace Reference

Classes

class  VTKPointDescriptorEntry
 
class  VTKPointDescriptorEntryImpl
 

Functions

template<typename V >
std::enable_if
< std::is_floating_point< V >
::value, std::string >::type 
toVTKDataType ()
 
template<typename V >
std::enable_if
< std::is_integral< V >::value
&&std::is_unsigned< V >::value,
std::string >::type 
toVTKDataType ()
 
template<typename V >
std::enable_if
< std::is_integral< V >::value
&&std::is_signed< V >::value,
std::string >::type 
toVTKDataType ()
 
template<typename V >
std::enable_if< std::is_array
< V >::value, std::string >
::type 
toVTKDataType ()
 
template<typename T , typename V >
std::enable_if< std::is_array
< V >::value||std::is_pointer
< V >::value, void >::type 
emitProxy (std::ostream &out, const T &t, std::size_t nComponents, V T::*member)
 This function actually writes the correct datatype to ostream. More...
 
template<typename T , typename V >
std::enable_if<!(std::is_array
< V >::value||std::is_pointer
< V >::value), void >::type 
emitProxy (std::ostream &out, const T &t, std::size_t nComponents, V T::*member)
 

Function Documentation

template<typename T , typename V >
std::enable_if<std::is_array<V>::value || std::is_pointer<V>::value, void>::type Detail::emitProxy ( std::ostream &  out,
const T &  t,
std::size_t  nComponents,
V T::*  member 
)

This function actually writes the correct datatype to ostream.

Definition at line 117 of file VTKData.h.

References constants::i.

Referenced by Detail::VTKPointDescriptorEntryImpl< T, V >::emit().

118  {
119  for (std::size_t i = 0; i < nComponents; i++)
120  {
121  out << (t.*member)[i] << " ";
122  }
123  }
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51
template<typename T , typename V >
std::enable_if<!(std::is_array<V>::value || std::is_pointer<V>::value), void>::type Detail::emitProxy ( std::ostream &  out,
const T &  t,
std::size_t  nComponents,
V T::*  member 
)

Definition at line 127 of file VTKData.h.

128  {
129  out << t.*member << " ";
130  }
template<typename V >
std::enable_if<std::is_floating_point<V>::value, std::string>::type Detail::toVTKDataType ( )

This function returns the correct VTK data type based on the template argument

Definition at line 88 of file VTKData.h.

89  {
90  return "Float32";
91  }
template<typename V >
std::enable_if<std::is_integral<V>::value && std::is_unsigned<V>::value, std::string>::type Detail::toVTKDataType ( )

Definition at line 95 of file VTKData.h.

96  {
97  return "UInt32";
98  }
template<typename V >
std::enable_if<std::is_integral<V>::value && std::is_signed<V>::value, std::string>::type Detail::toVTKDataType ( )

Definition at line 102 of file VTKData.h.

103  {
104  return "Int32";
105  }
template<typename V >
std::enable_if<std::is_array<V>::value, std::string>::type Detail::toVTKDataType ( )

Definition at line 109 of file VTKData.h.

110  {
111  return toVTKDataType< typename std::remove_extent<V>::type >();
112  }