OpenWalnut  1.5.0dev
Public Member Functions | Public Attributes | List of all members
VisitorVSetSingleArgument Class Reference

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

+ Inheritance diagram for VisitorVSetSingleArgument:
+ Collaboration diagram for VisitorVSetSingleArgument:

Public Member Functions

 VisitorVSetSingleArgument (size_t opIdx=0)
 Create visitor instance. More...
 
template<typename T >
result_type operator() (const WValueSet< T > *const &vsetA) const
 Called by boost::varying during static visiting. More...
 
void setBorder (double l, double u)
 Set lower and upper border needed for several ops. More...
 

Public Attributes

size_t m_opIdx
 The operator index. More...
 
double m_lowerBorder
 Lower border needed for several ops. More...
 
double m_upperBorder
 Upper border needed for several ops. More...
 

Detailed Description

Visitor for discriminating the type of the first valueset.

It should be used for operations on ONE valueset.

Definition at line 490 of file WMScalarOperator.cpp.

Constructor & Destructor Documentation

◆ VisitorVSetSingleArgument()

VisitorVSetSingleArgument::VisitorVSetSingleArgument ( size_t  opIdx = 0)
inlineexplicit

Create visitor instance.

The specified valueset gets visited if the first one is visited using this visitor.

Parameters
opIdxThe operator index. Forwarded to VisitorVSetB

Definition at line 498 of file WMScalarOperator.cpp.

Member Function Documentation

◆ operator()()

template<typename T >
result_type VisitorVSetSingleArgument::operator() ( const WValueSet< T > *const &  vsetA) const
inline

Called by boost::varying during static visiting.

Applies the operation to it

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

Definition at line 513 of file WMScalarOperator.cpp.

References m_lowerBorder, m_opIdx, and m_upperBorder.

◆ setBorder()

void VisitorVSetSingleArgument::setBorder ( double  l,
double  u 
)
inline

Set lower and upper border needed for several ops.

Parameters
llower border
uupper border

Definition at line 570 of file WMScalarOperator.cpp.

References m_lowerBorder, and m_upperBorder.

Referenced by WMScalarOperator::moduleMain().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_lowerBorder

double VisitorVSetSingleArgument::m_lowerBorder

Lower border needed for several ops.

Definition at line 584 of file WMScalarOperator.cpp.

Referenced by operator()(), and setBorder().

◆ m_opIdx

size_t VisitorVSetSingleArgument::m_opIdx

The operator index.

Definition at line 579 of file WMScalarOperator.cpp.

Referenced by operator()().

◆ m_upperBorder

double VisitorVSetSingleArgument::m_upperBorder

Upper border needed for several ops.

Definition at line 589 of file WMScalarOperator.cpp.

Referenced by operator()(), and setBorder().


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