Public Member Functions | Public Attributes | List of all members
dune::HuffTree::Node Struct Reference

#include <FelixCompress.hh>

Public Member Functions

void operator= (const Node &other)
 
bool operator< (const Node &other) const
 

Public Attributes

Nodeleft = NULL
 
Noderight = NULL
 
uint16_t value = 0
 
size_t huffcode = 0
 
uint8_t hufflength = 0
 
unsigned frequency = 0
 
bool hasParent = false
 

Detailed Description

Definition at line 30 of file FelixCompress.hh.

Member Function Documentation

bool dune::HuffTree::Node::operator< ( const Node other) const
inline

Definition at line 53 of file FelixCompress.hh.

53  {
54  return (frequency < other.frequency) ||
55  ((frequency == other.frequency) && (value < other.value));
56  }
void dune::HuffTree::Node::operator= ( const Node other)
inline

Definition at line 39 of file FelixCompress.hh.

39  {
40  if (this != &other) {
41  left = other.left;
42  right = other.right;
43  value = other.value;
44  huffcode = other.huffcode;
45  huffcode = other.hufflength;
46  frequency = other.frequency;
47  hasParent = other.hasParent;
48  }
49  }
QMapNodeBase * left
Definition: qmap.h:51
QMapNodeBase * right
Definition: qmap.h:52

Member Data Documentation

unsigned dune::HuffTree::Node::frequency = 0

Definition at line 36 of file FelixCompress.hh.

bool dune::HuffTree::Node::hasParent = false

Definition at line 37 of file FelixCompress.hh.

size_t dune::HuffTree::Node::huffcode = 0

Definition at line 34 of file FelixCompress.hh.

uint8_t dune::HuffTree::Node::hufflength = 0

Definition at line 35 of file FelixCompress.hh.

Node* dune::HuffTree::Node::left = NULL

Definition at line 31 of file FelixCompress.hh.

Node* dune::HuffTree::Node::right = NULL

Definition at line 32 of file FelixCompress.hh.

uint16_t dune::HuffTree::Node::value = 0

Definition at line 33 of file FelixCompress.hh.


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