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

📄 globtbl.h

📁 在手机操作系统symbina上使用的一个脚本扩展语言的代码实现,可以参考用于自己的开发
💻 H
字号:
// GLOBTBL.H
//
// Copyright (c) 1997-1999 Symbian Ltd.  All rights reserved.
//


  
#ifndef GLOBTBL_H
#define GLOBTBL_H

#include <e32base.h>

const TInt KMaxGlobalName=32;
const TInt KGlobalTblSize=16;

class TOplGlobal
	{
public:
	TOplGlobal(const TBufC<KMaxGlobalName> aName,const TInt aType,const TAny* aPtr);
private:
	TSglQueLink iLink;
	TBufC<KMaxGlobalName> iName;
	TInt iType;
	const TAny* iPtr;
friend class CGlobalsTbl;
	};

class CGlobalsTbl : public CBase
	{
public:
	CGlobalsTbl();
	~CGlobalsTbl();
	void AddL(const TBufC<KMaxGlobalName>& aName,const TInt aType,const TAny* aPtr);
	void Remove(const TBufC<KMaxGlobalName>& aName);
	const TAny* Find(const TBufC<KMaxGlobalName>& aName,const TInt aType);
	void PrepareToAddC();
private:
	static void RemoveAddedGlobals(TAny* aGlobalsTbl);
	TOplGlobal* iListMark[KGlobalTblSize];
private:
	TInt GetHashValue(const TBufC<KMaxGlobalName>& aName);
	TSglQue<TOplGlobal> iList[KGlobalTblSize];
	};



#endif

⌨️ 快捷键说明

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