OpenWalnut  1.5.0dev
Public Member Functions | Public Attributes | List of all members
compValue Struct Reference

implements a compare operator for clusters, depending on custom value of the cluster More...

#include <WHierarchicalTree.h>

+ Collaboration diagram for compValue:

Public Member Functions

 compValue (WHierarchicalTree *tree)
 constructor More...
 
bool operator() (const size_t lhs, const size_t rhs) const
 compares two clusters More...
 

Public Attributes

WHierarchicalTreem_tree
 stores pointer to tree we work on More...
 

Detailed Description

implements a compare operator for clusters, depending on custom value of the cluster

Definition at line 328 of file WHierarchicalTree.h.

Constructor & Destructor Documentation

◆ compValue()

compValue::compValue ( WHierarchicalTree tree)
inlineexplicit

constructor

Parameters
tree

Definition at line 336 of file WHierarchicalTree.h.

Member Function Documentation

◆ operator()()

bool compValue::operator() ( const size_t  lhs,
const size_t  rhs 
) const
inline

compares two clusters

Parameters
lhs
rhs
Returns
bool

Definition at line 346 of file WHierarchicalTree.h.

References WHierarchicalTree::getCustomData(), and m_tree.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_tree

WHierarchicalTree* compValue::m_tree

stores pointer to tree we work on

Definition at line 330 of file WHierarchicalTree.h.

Referenced by operator()().


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