jubilant-funicular
src
HuffmanLeaf.cpp
1
#include "nta/Compressor.h"
2
3
namespace
nta
{
4
HuffmanLeaf::HuffmanLeaf
() : m_data(0) {
5
}
6
HuffmanLeaf::HuffmanLeaf
(GLubyte data,
int
freq) : m_data(data) {
7
m_freq
= freq;
8
}
9
HuffmanLeaf::~HuffmanLeaf
() {
10
m_freq
= 0;
11
m_data
= 0;
12
}
13
GLubyte
HuffmanLeaf::getData
()
const
{
14
return
m_data
;
15
}
16
}
nta::HuffmanLeaf::getData
GLubyte getData() const
returns m_data
Definition:
HuffmanLeaf.cpp:13
nta
Definition:
Animation2D.h:6
nta::HuffmanLeaf::~HuffmanLeaf
~HuffmanLeaf()
destroys leaf
Definition:
HuffmanLeaf.cpp:9
nta::HuffmanLeaf::m_data
GLubyte m_data
the byte associated with the leaf
Definition:
Compressor.h:41
nta::HuffmanLeaf::HuffmanLeaf
HuffmanLeaf()
basic constructor
Definition:
HuffmanLeaf.cpp:4
nta::HuffmanNode::m_freq
int m_freq
the frequency of the nodes associated bytes
Definition:
Compressor.h:19
Generated by
1.8.17