主题: node sample
查看单个帖子
旧 2007-07-22, 09:20 PM   #5
yogy
高级会员
 
注册日期: 06-11
帖子: 1527
精华: 15
现金: 6353 标准币
资产: 6353 标准币
yogy 向着好的方向发展
默认 回复: node sample

5.CSMapHasher.h
// CSMapHasher.h: interface for the CSMapHasher class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CSMAPHASHER_H__595FBF07_A8A6_40FC_AFB4_F8A953C29CD5__INCLUDED_)
#define AFX_CSMAPHASHER_H__595FBF07_A8A6_40FC_AFB4_F8A953C29CD5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "CSTypedef.h"
#include "CSClassTypeNode.h"
class CSClassTypeHandle;
class CSMapHasher
{
public:
CS_EXPORT static CS_Integer HashCode(const PCSClassTypeNode& K,const CS_Integer Upper) ;
CS_EXPORT static CS_Integer HashCode(const CS_CString K,const CS_Integer len,const CS_Integer Upper) ;
CS_EXPORT static CS_Integer HashCode(const CS_CString K,const CS_Integer len,const CS_Integer Upper,CS_Integer& HashCode) ;
CS_EXPORT static CS_Boolean IsEqual(const PCSClassTypeNode& K1,const CS_CString K2,const CS_Integer len) ;
CS_EXPORT static CS_Boolean IsEqual(const PCSClassTypeNode& K1,const PCSClassTypeNode& K2) ;
CS_EXPORT static CS_Boolean IsEqual(const PCSClassTypeNode& K1,const CSClassTypeHandle& K2) ;

};
typedef CSMapHasher Hasher;
#endif // !defined(AFX_CSMAPHASHER_H__595FBF07_A8A6_40FC_AFB4_F8A953C29CD5__INCLUDED_)
yogy离线中   回复时引用此帖