buffer.h

来自「Solaris环境下的数据挖掘算法:birch聚类算法。该算法适用于对大量数据的」· C头文件 代码 · 共 52 行

H
52
字号
/****************************************************************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 + =
减小字号Ctrl + -
显示快捷键?