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

implements a compare operator for nodes inside a tree structure, depending on the Size More...

+ Collaboration diagram for WHtree::compSize:

Public Member Functions

 compSize (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 inside a tree structure, depending on the Size

Definition at line 733 of file WHtree.h.

Constructor & Destructor Documentation

◆ compSize()

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

structure constructor, stores the tree pointer into the data member

Parameters
treethe tree pointer

Definition at line 741 of file WHtree.h.

Member Function Documentation

◆ operator()() [1/2]

bool WHtree::compSize::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 751 of file WHtree.h.

References WHtree::getNode(), and m_tree.

+ Here is the call graph for this function:

◆ operator()() [2/2]

bool WHtree::compSize::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 762 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::compSize::m_tree

stores pointer to tree we work on

Definition at line 735 of file WHtree.h.

Referenced by operator()().


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