OpenWalnut  1.5.0dev
Public Member Functions | Public Attributes | List of all members
WHtree::compHLevel Struct Reference

implements a compare operator for nodes, depending on the hierarchical level More...

+ Collaboration diagram for WHtree::compHLevel:

Public Member Functions

 compHLevel (const WHtree *const tree)
 structure constructor, stores the tree pointer into the data member More...
 
bool operator() (const nodeID_t &lhs, const nodeID_t &rhs) const
 the comparison operator result when using nodeID_t types More...
 
bool operator() (const size_t lhs, const size_t rhs) const
 the comparison operator result when using size_t types More...
 

Public Attributes

const WHtree *const m_tree
 stores pointer to tree we work on More...
 

Detailed Description

implements a compare operator for nodes, depending on the hierarchical level

Definition at line 769 of file WHtree.h.

Constructor & Destructor Documentation

◆ compHLevel()

WHtree::compHLevel::compHLevel ( const WHtree *const  tree)
inlineexplicit

structure constructor, stores the tree pointer into the data member

Parameters
treethe tree pointer

Definition at line 777 of file WHtree.h.

Member Function Documentation

◆ operator()() [1/2]

bool WHtree::compHLevel::operator() ( const nodeID_t &  lhs,
const nodeID_t &  rhs 
) const
inline

the comparison operator result when using nodeID_t types

Parameters
lhsthe left hand side object
rhsthe right hand side object
Returns
the result of the comparison operation

Definition at line 787 of file WHtree.h.

References WHtree::getNode(), and m_tree.

+ Here is the call graph for this function:

◆ operator()() [2/2]

bool WHtree::compHLevel::operator() ( const size_t  lhs,
const size_t  rhs 
) const
inline

the comparison operator result when using size_t types

Parameters
lhsthe left hand side object
rhsthe right hand side object
Returns
the result of the comparison operation

Definition at line 805 of file WHtree.h.

References WHtree::getNode(), and m_tree.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_tree

const WHtree* const WHtree::compHLevel::m_tree

stores pointer to tree we work on

Definition at line 771 of file WHtree.h.

Referenced by operator()().


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