HufNode.h
上传用户:liruoru
上传日期:2007-07-02
资源大小:43k
文件大小:1k
- // HufNode.h: interface for the HufNode class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_HUFNODE_H__BD4731F5_9D3A_11D3_8122_DE8E79793449__INCLUDED_)
- #define AFX_HUFNODE_H__BD4731F5_9D3A_11D3_8122_DE8E79793449__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class HufNode
- {
- public:
- void PutName(char);
- int GetParent();
- void PutWeight(double);
- void PutRchild(int);
- void PutLchild(int);
- void PutParent(int);
- double GetWeight();
- char GetName();
- void initnode();
- char* code;
- char name;
- int parent,lchild,rchild;
- double weight;
- HufNode(char,double);
- HufNode();
- virtual ~HufNode();
- protected:
- };
- #endif // !defined(AFX_HUFNODE_H__BD4731F5_9D3A_11D3_8122_DE8E79793449__INCLUDED_)