OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
VisitorVSet< TargetType > Class Template Reference

Visitor for discriminating the type of the first valueset. More...

+ Inheritance diagram for VisitorVSet< TargetType >:
+ Collaboration diagram for VisitorVSet< TargetType >:

Public Member Functions

 VisitorVSet ()
 Create visitor instance and convert it to the given input type. More...
 
template<typename T >
result_type operator() (const WValueSet< T > *const &vals) const
 Called by boost::varying during static visiting. More...
 
 VisitorVSet (boost::filesystem::path fn)
 Create visitor instance and convert it to the given input type. More...
 
template<typename T >
void operator() (const WValueSet< T > *const &vals) const
 Called by boost::varying during static visiting. More...
 

Private Attributes

boost::filesystem::path m_filename
 Where to write. More...
 

Detailed Description

template<class TargetType>
class VisitorVSet< TargetType >

Visitor for discriminating the type of the first valueset.

Definition at line 85 of file WMDataTypeConversion.cpp.

Constructor & Destructor Documentation

◆ VisitorVSet() [1/2]

template<class TargetType >
VisitorVSet< TargetType >::VisitorVSet ( )
inline

Create visitor instance and convert it to the given input type.

Definition at line 91 of file WMDataTypeConversion.cpp.

◆ VisitorVSet() [2/2]

template<class TargetType >
VisitorVSet< TargetType >::VisitorVSet ( boost::filesystem::path  fn)
inlineexplicit

Create visitor instance and convert it to the given input type.

Parameters
fnthe filename

Definition at line 101 of file WMWriteRawData.cpp.

Member Function Documentation

◆ operator()() [1/2]

template<class TargetType >
template<typename T >
result_type VisitorVSet< TargetType >::operator() ( const WValueSet< T > *const &  vals) const
inline

Called by boost::varying during static visiting.

Creates new, converted valueset

Template Parameters
Tthe real integral type of the first value set.
Parameters
valsthe first valueset currently visited.
Returns
the result from the operation with this and the second value set

Definition at line 105 of file WMDataTypeConversion.cpp.

◆ operator()() [2/2]

template<class TargetType >
template<typename T >
void VisitorVSet< TargetType >::operator() ( const WValueSet< T > *const &  vals) const
inline

Called by boost::varying during static visiting.

Creates new, converted valueset

Template Parameters
Tthe real integral type of the first value set.
Parameters
valsthe first valueset currently visited.

Definition at line 114 of file WMWriteRawData.cpp.

References VisitorVSet< TargetType >::m_filename.

Member Data Documentation

◆ m_filename

template<class TargetType >
boost::filesystem::path VisitorVSet< TargetType >::m_filename
private

Where to write.

Definition at line 130 of file WMWriteRawData.cpp.

Referenced by VisitorVSet< TargetType >::operator()().


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