Tree Compression with Top Trees Revisited
Public Member Functions | Public Attributes | List of all members
HuffInnerNode Struct Reference

An inner node in a Huffman tree. More...

#include <Huffman.h>

Inheritance diagram for HuffInnerNode:
Inheritance graph
[legend]
Collaboration diagram for HuffInnerNode:
Collaboration graph
[legend]

Public Member Functions

 HuffInnerNode (const int leftId, const int rightId, const int combinedFrequency)
 
- Public Member Functions inherited from HuffNode
virtual ~HuffNode ()
 

Public Attributes

const int leftId
 
const int rightId
 
- Public Attributes inherited from HuffNode
const int frequency
 

Additional Inherited Members

- Protected Member Functions inherited from HuffNode
 HuffNode (const int frequency)
 

Detailed Description

An inner node in a Huffman tree.

Definition at line 29 of file Huffman.h.

Constructor & Destructor Documentation

HuffInnerNode::HuffInnerNode ( const int  leftId,
const int  rightId,
const int  combinedFrequency 
)
inline

Construct a Huffman inner node

Parameters
leftIdID of the left child node
rightIdID of the right child node
combinedFrequencyfrequency of the combined symbol (sum of left and right child's frequency)

Definition at line 35 of file Huffman.h.

Member Data Documentation

const int HuffInnerNode::leftId

Definition at line 30 of file Huffman.h.

const int HuffInnerNode::rightId

Definition at line 30 of file Huffman.h.


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