dev rstoetter cbalancedbinarytree cBalancedBinaryTree::_SearchByKey() - rstoetter/cbalancedbinarytree-php GitHub Wiki

Method _SearchByKey( ) - of API Reference dev

 protected   \rstoetter\cbalancedbinarytree\cBalancedBinaryTreeNode|boolean rstoetter\cbalancedbinarytree\cBalancedBinaryTree::_SearchByKey(\rstoetter\cbalancedbinarytree\type $key, \rstoetter\cbalancedbinarytree\type $tree)
  • Namespace : rstoetter\cbalancedbinarytree
  • Class name: cBalancedBinaryTree
  • This method is defined by the class rstoetter\cbalancedbinarytree\cBalancedBinaryTree

search the node with the unique key $key in the tree above $tree and return false if the key was not found or the pointer to the object belonging to the key

Arguments

  • $key \rstoetter\cbalancedbinarytree\type - <p>the unique key we are searching for</p>
  • $tree \rstoetter\cbalancedbinarytree\type - <p>the root node wherefrom we are searching on - should not be null</p>

Returns

\rstoetter\cbalancedbinarytree\cBalancedBinaryTreeNode|boolean the object we have searched for or false