hnsrtreeinfo.cpp

来自「SR-tree is an index structure for high-d」· C++ 代码 · 共 52 行

CPP
52
字号
/*
 * HnSRTreeInfo.cc
 *
 * DO NOT EDIT THIS FILE!
 *
 * This file is automatically generated by obj2ptr.
 * 2002/09/13 14:07:13
 */

#include "HnSRTree/HnSRTreeInfo.hh"
#include "HnSRTree/HnSRTreeInfoObj.hh"

/*
 * HnSRTreeInfo
 */

const HnSRTreeInfo HnSRTreeInfo::null;

HnSRTreeInfo
new_HnSRTreeInfo(HnBlockStream blockStream)
{
    HnSRTreeInfoObj *_obj;

    _obj = new HnSRTreeInfoObj(blockStream);

    if ( _obj->hasConstructorFailed() ) {
        delete _obj;
        return (HnSRTreeInfoObj *)NULL;
    }

    return _obj;
}

HnSRTreeInfo
new_HnSRTreeInfo(int dimension, int dataItemSize, long fileSize, long freeOffset, long rootOffset, int height, int blockSize, int splitFactor, int reinsertFactor, HnSRTreeInfo::StaticAlgorithm staticAlgorithm, HnSRTreeInfo::NonLeafFloatType nonLeafFloatType, HnSRTreeInfo::NeighborAlgorithm neighborAlgorithm)
{
    HnSRTreeInfoObj *_obj;

    _obj = new HnSRTreeInfoObj(dimension, dataItemSize, fileSize, freeOffset, rootOffset, height, blockSize, splitFactor, reinsertFactor, staticAlgorithm, nonLeafFloatType, neighborAlgorithm);

    if ( _obj->hasConstructorFailed() ) {
        delete _obj;
        return (HnSRTreeInfoObj *)NULL;
    }

    return _obj;
}

#define HnClass HnSRTreeInfo
#include "HnSRTree/HnClassArray.cpp"

⌨️ 快捷键说明

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