treeindex.mco
来自「extremeDB s sample code,useful for you」· MCO 代码 · 共 35 行
MCO
35 行
/**************************************************************** * * * Copyright (c) 2001-2006 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 + =
减小字号Ctrl + -
显示快捷键?