Octane v1.01.20 - The Open Compression Toolkit for C++ http://octane.sourceforge.net/
Homepage | Main | Modules | Class Hierarchy | Compound List | File List | Compound Members | Related Pages

HuffNode_Middle Class Reference

#include <huffmannodes.hpp>

Inheritance diagram for HuffNode_Middle:

HuffNode List of all members.

Detailed Description

A derived huffman node for a node in the middle of the tree.

It holds pointers to other children nodes.

Definition at line 151 of file huffmannodes.hpp.

Public Member Functions

 HuffNode_Middle (HuffNode *c0, HuffNode *c1)
 constructor

virtual ~HuffNode_Middle ()
 destructor

void recursive_freechildren ()
 freeing memory occupied by this node and any children

virtual void traverse_buildbitcodes (std::bitset< DEF_HUFFMANPQ_MAXFUNCBITS > &current_bitset, int bitsetlength)
 recursive traversal of huffman tree for building bitcodes

virtual unsigned int get_memoryused () const
 get memory used by the node and its children

virtual HuffNodeget_child0 ()
 get pointer to left child

virtual HuffNodeget_child1 ()
 get pointer to right child

bool isleaf ()
 is this a leaf node (this is an RTTI type function)


Protected Attributes

HuffNodechild0
 pointer to left child

HuffNodechild1
 pointer to right child


Constructor & Destructor Documentation

virtual HuffNode_Middle::~HuffNode_Middle  )  [inline, virtual]
 

destructor

Note:
this does not free children

Definition at line 162 of file huffmannodes.hpp.

00162 { ; }


The documentation for this class was generated from the following files:  
Generated on 20 May 2004 by doxygen 1.3.3