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

📄 elementcomparisonfunctions.h

📁 最新官方例子,图形,描述副,基本控件,通讯协议,等等,
💻 H
字号:
#ifndef ELEMENTCOMPARISONFUNCTIONS_H
#define ELEMENTCOMPARISONFUNCTIONS_H
// INCLUDES

// System includes
#include <e32base.h>

// FORWARD DECLARATIONS
class CChemicalElement;

// CLASS DECLARATION

/**
*
* @class	NElementComparisonFunctions elementcomparisonfunctions.h
* @brief	A namespace to encapsulate functions that are used by CElementList to do comparison
*			of elements for finding and sorting elements. They don't logically belong in either
*			the CElementList or CChemicalElement classes. A namespace is used to prevent them
*			being declared as global functions that would clutter up the global namespace.
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
namespace NElementComparisonFunctions
	{
	//Equality functions
	//(true if aElement1 == aElement2)
	TBool ElementsHaveSameName(const CChemicalElement& aElement1, const CChemicalElement& aElement2);
	TBool ElementsHaveSameSymbol(const CChemicalElement& aElement1, const CChemicalElement& aElement2);
	TBool ElementsHaveSameAtomicNumber(const CChemicalElement& aElement1, const CChemicalElement& aElement2);
	//Comparison functions
	//(<0 if aElement1 < aElement2,
	// ==0 if aElement1 == aElement2,
	// >0 if aElement1 > aElement2)
	TInt CompareElementsName(const CChemicalElement& aElement1, const CChemicalElement& aElement2);
	TInt CompareElementsSymbol(const CChemicalElement& aElement1, const CChemicalElement& aElement2);
	TInt CompareElementsAtomicNumber(const CChemicalElement& aElement1, const CChemicalElement& aElement2);
	TInt CompareElementsRelativeAtomicMass(const CChemicalElement& aElement1, const CChemicalElement& aElement2);
	};


#endif // #ifndef ELEMENTCOMPARISONFUNCTIONS_H

// End of File

⌨️ 快捷键说明

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