This commit is contained in:
2013-12-08 20:49:17 +01:00
commit 546acd105b
76 changed files with 654 additions and 0 deletions

34
Huffman/DataSet.h Normal file
View File

@@ -0,0 +1,34 @@
#pragma once
#include <cstdlib>
class HElement;
class DataSet
{
public:
DataSet(char in_character, float in_frequency, HElement * in_t_list = NULL);
virtual ~DataSet(void);
char getcharacter();
float getfrequency();
void increment_frequency();
HElement * gett_list();
void operator= (DataSet& in);
bool operator==(const char& in);
bool operator< (DataSet &in);
static bool order_dec (DataSet &a, DataSet &b);
private:
char character;
float frequency;
HElement * t_list;
};