teststruct.h

来自「全新的纯内存式实时数据库」· C头文件 代码 · 共 63 行

H
63
字号
/******************************************************************* *                                                                 * *  teststruct.h                                                      * *                                                                 * *  This file is a part of the eXtremeDB source code               * *  Copyright (c) 2001-2007 McObject LLC                           *  *  All Rights Reserved                                            * *                                                                 * *******************************************************************/#ifndef __GUESS_H__#define __GUESS_H__#include "mcosql.h"using namespace McoSql;#ifndef MCO_PLATFORM_X64size_t const PAGE_SIZE = 128; // define eXtremeDB page size#elsesize_t const PAGE_SIZE = 256;#endifsize_t const DATABASE_SIZE = 4*1024*1024;void*  const MAP_ADDRESS = (void*)0x20000000;double const EPSILON = 0.0001;int const nRecords = 100;struct Point {     int x;    int y;};struct Line {     Point beg;    Point end;};struct Polygon {     Array* points;}; struct MyRecord {    char*   s;    short   i2;    Point   p;    char    i1;    int64_t i8;    float   f;    double  d;    Line    l;    Array*  ai1;    Array*  vp;    Array*  lines;    int     i4;};GET_DICTIONARY(teststructdb);#endif

⌨️ 快捷键说明

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