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

📄 treeindex.mco

📁 PB 熟悉的哥们希望大家可以互相学习一下
💻 MCO
字号:
/****************************************************************
 *                                                              *
 * Copyright (c) 2001-2007 McObject LLC. All Right Reserved.    *
 *                                                              *
 ****************************************************************/

// This sample demonstrates operations with tree-indexes

#define uint4     unsigned<4>

declare database  randdb;

struct Vis
{
	float fValue;
	uint4 iRGB;
};

class Measurement
{
	uint4   iSeries;							  /* Series of measurement */
	uint4   iIdx;								  /* Index      */

	time    tTime;								  /* timestamp  */
	float   fValue1;							  /* value1     */
	float   fValue2;							  /* value2     */
	float   fDiff;								  /* difference */
	vector < Vis > vVis;						  /* Visualization */

	unique tree <iSeries, iIdx>  I_Index;		  /* unique complex index */
	tree <tTime>                I_Time;
	tree <fDiff>                I_Diff;
	tree <vVis.iRGB>            I_RGB;			  /* index on vector of structures */
};

⌨️ 快捷键说明

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