1 inline TCollection_AVLBaseNode::TCollection_AVLBaseNode(const TCollection_AVLBaseNodePtr& L, const TCollection_AVLBaseNodePtr& R)
2 : myLeft(L),myRight(R),myCount(1)
6 inline void TCollection_AVLBaseNode::SetChild(const TCollection_AVLBaseNodePtr& theNode, const TCollection_Side theSide)
7 // According to the side changes a child by another
9 if (theSide == TCollection_Left) {myLeft = theNode;}
10 else {myRight = theNode;}
13 inline TCollection_AVLBaseNodePtr& TCollection_AVLBaseNode::Right() const
15 return (TCollection_AVLBaseNodePtr&)myRight;
18 inline TCollection_AVLBaseNodePtr& TCollection_AVLBaseNode::Left() const
20 return (TCollection_AVLBaseNodePtr&)myLeft;
23 inline Standard_Integer& TCollection_AVLBaseNode::Count() const
25 return (Standard_Integer&)myCount;