Files
huffman/Huffman/DataSet.h
2013-12-08 20:49:17 +01:00

35 lines
501 B
C++

#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;
};