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

implements a compare operator for clusters, depending on leaf count More...

#include <WHierarchicalTree.h>

+ Collaboration diagram for compSize:

Public Member Functions

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

Public Attributes

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

Detailed Description

implements a compare operator for clusters, depending on leaf count

Definition at line 301 of file WHierarchicalTree.h.

Constructor & Destructor Documentation

◆ compSize()

compSize::compSize ( const WHierarchicalTree tree)
inlineexplicit

constructor

Parameters
tree

Definition at line 309 of file WHierarchicalTree.h.

Member Function Documentation

◆ operator()()

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

compares two clusters

Parameters
lhs
rhs
Returns
bool

Definition at line 320 of file WHierarchicalTree.h.

References m_tree, and WHierarchicalTree::size().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_tree

const WHierarchicalTree* compSize::m_tree

stores pointer to tree we work on

Definition at line 303 of file WHierarchicalTree.h.

Referenced by operator()().


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