⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 buffer.h

📁 经典的层次聚类算法Birch。在linux下运行通过
💻 H
字号:
/****************************************************************File Name:   buffer.hAuthor: Tian Zhang, CS Dept., Univ. of Wisconsin-Madison, 1995               Copyright(c) 1995 by Tian Zhang                   All Rights ReservedPermission to use, copy and modify this software must be grantedby the author and provided that the above copyright notice appear in all relevant copies and that both that copyright notice and this permission notice appear in all relevant supporting documentations. Comments and additions may be sent the author at zhang@cs.wisc.edu.******************************************************************/#ifndef BUFFER_H#define BUFFER_Hclass Stat;class BufferClass {private:	Entry *buffer;	int   size;	int   head;	int   tail;public:	BufferClass(Stat *Stats);	~BufferClass();	int Size() const {return size;}	short Empty() const;	short Full()  const;	void CF(Entry& tmpcf) const;	int CountEntry() const;	int CountTuple() const;	void AddEnt(const Entry &ent);	void DeleteEnt(Entry &ent);friend ostream& operator<<(ostream &fo, BufferClass *Buffer);friend ofstream& operator<<(ofstream &fo, BufferClass *Buffer);};ostream& operator<<(ostream &fo, BufferClass *Buffer);ofstream& operator<<(ofstream &fo, BufferClass *Buffer);#endif BUFFER_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -