This class models a node structure used for building Huffman Binary Tree.
bool operator<=(const BinNode &)
This method overloads less than and equal to (<=) operator for comparing node.
BinNode * leftChild
Pointer to the left child.
int frequency
Number of occurrence of a character.
BinNode * getRightChild() const
BinNode * rightChild
Pointer to the right child.
void setRightChild(BinNode *)
sets parameter node as left child of the caller node instance.
void setLeftChild(BinNode *)
sets parameter node as left child of the caller node instance.
char character
Character present in input data.
friend std::ostream & operator<<(std::ostream &, BinNode *)
This method overloads insertion operator for printing node object.
BinNode * getLeftChild() const
bool operator<(const BinNode &)
This method overloads less than operator for comparing node.
char getCharacter() const