HufNode.h
Upload User: liruoru
Upload Date: 2007-07-02
Package Size: 43k
Code Size: 1k
Category:

Algorithm

Development Platform:

Visual C++

  1. // HufNode.h: interface for the HufNode class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_HUFNODE_H__BD4731F5_9D3A_11D3_8122_DE8E79793449__INCLUDED_)
  5. #define AFX_HUFNODE_H__BD4731F5_9D3A_11D3_8122_DE8E79793449__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class HufNode  
  10. {
  11. public:
  12. void PutName(char);
  13. int GetParent();
  14. void PutWeight(double);
  15. void PutRchild(int);
  16. void PutLchild(int);
  17. void PutParent(int);
  18. double GetWeight();
  19. char GetName();
  20. void initnode();
  21. char* code;
  22. char name;
  23. int parent,lchild,rchild;
  24. double weight;
  25. HufNode(char,double);
  26. HufNode();
  27. virtual ~HufNode();
  28. protected:
  29. };
  30. #endif // !defined(AFX_HUFNODE_H__BD4731F5_9D3A_11D3_8122_DE8E79793449__INCLUDED_)