OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
WJoinContourTree::IndirectCompare Class Reference

Comperator for indirect sort so the value set is not modified. More...

+ Collaboration diagram for WJoinContourTree::IndirectCompare:

Public Member Functions

 IndirectCompare (std::shared_ptr< WValueSet< double > > valueSet)
 Since we must have access to the value set we need a reference to it. More...
 
bool operator() (size_t i, size_t j)
 Compares the isovalue of the elments with index i and j. More...
 

Private Attributes

std::shared_ptr< WValueSet< double > > m_valueSet
 Reference to the isovalues. More...
 

Detailed Description

Comperator for indirect sort so the value set is not modified.

Definition at line 123 of file WJoinContourTree.h.

Constructor & Destructor Documentation

◆ IndirectCompare()

WJoinContourTree::IndirectCompare::IndirectCompare ( std::shared_ptr< WValueSet< double > >  valueSet)
explicit

Since we must have access to the value set we need a reference to it.

Parameters
valueSetValue set on which the comparision is done.

Definition at line 131 of file WJoinContourTree.cpp.

Member Function Documentation

◆ operator()()

bool WJoinContourTree::IndirectCompare::operator() ( size_t  i,
size_t  j 
)

Compares the isovalue of the elments with index i and j.

Parameters
iThe index of the first element
jThe index of the other element
Returns
True if the element in the value set at position i is greater than the the element at position j

Definition at line 136 of file WJoinContourTree.cpp.

References WJoinContourTree::m_valueSet.

Member Data Documentation

◆ m_valueSet

std::shared_ptr< WValueSet < double > > WJoinContourTree::IndirectCompare::m_valueSet
private

Reference to the isovalues.

Definition at line 145 of file WJoinContourTree.h.


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