www.pudn.com > apriori的vc源代码.zip > tzObject.h


// tzObject.h: interface for the tzObject class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_TZOBJECT_H__51668446_3CF5_4484_97A5_9FE719791D20__INCLUDED_) 
#define AFX_TZOBJECT_H__51668446_3CF5_4484_97A5_9FE719791D20__INCLUDED_ 
 
class tzObject 
{ 
 
public: 
 
	// 
	// Constructor/Destructor 
	// 
	tzObject(); 
	virtual ~tzObject(); 
 
	// 
	// To ensure a consistent comparison interface and to allow comparison 
	// of all kinds of different objects, we will define a comparison functions. 
	// 
	virtual int		compare(tzObject *); 
 
	// 
	// To allow a deep copy of data structures we will define a standard interface... 
	// This member will return a copy of itself, freshly allocated and deep copied. 
	// 
	virtual tzObject	*clone(); 
 
	// 
	// To generate a key for this object, this will be used in Hash 
	// 
	virtual int         key(); 
 
	// 
	// To print out the content within the object 
	// 
	virtual void        dump(); 
 
protected: 
 
}; 
 
 
#endif // !defined(AFX_TZOBJECT_H__51668446_3CF5_4484_97A5_9FE719791D20__INCLUDED_)