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

📄 undefined.h

📁 粗慥集成算法集合 ,并有详细的文档资料和测试数据处
💻 H
字号:
//-------------------------------------------------------------------
//- Author........: Aleksander 豩rn
//- Date..........:
//- Description...:
//- Revisions.....:
//===================================================================

#ifndef __UNDEFINED_H__
#define __UNDEFINED_H__

#include <copyright.h>

#include <kernel/system/limits.h>
#include <kernel/system/float.h>

#include <kernel/basic/types.h>
#include <kernel/basic/string.h>

//-------------------------------------------------------------------
// Class.........: Undefined
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Scope around some "magic" constants indicating
//                 undefined values.
// Comments......: A static String object is present so that we can
//                 return a valid reference to a String and not a
//                 full String object.
// Revisions.....:
//===================================================================

class Undefined {
public:

	// Basic types.....................................................
	static int             Integer() {return INT_MAX;}
	static float           Float()   {return FLT_MAX;}
	static const ::String &String()  {static ::String undefined = "Undefined"; return undefined;}
	static ::Id            Id()      {return Integer();}

};

#endif

⌨️ 快捷键说明

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