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

📄 hnblockfile.cpp

📁 SR-tree is an index structure for high-dimensional nearest neighbor queries
💻 CPP
字号:
/*
 * HnBlockFile.cc
 *
 * DO NOT EDIT THIS FILE!
 *
 * This file is automatically generated by obj2ptr.
 * 2002/09/13 12:41:10
 */

#include "HnSRTree/HnBlockFile.hh"
#include "HnSRTree/HnBlockFileObj.hh"

/*
 * HnBlockFile
 */

const HnBlockFile HnBlockFile::null;

HnBlockFile
new_HnBlockFile(const char *fileName, int blockSize)
{
    HnBlockFileObj *_obj;

    _obj = new HnBlockFileObj(fileName, blockSize);

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

    return _obj;
}

HnBlockFile
new_HnBlockFile(const char *fileName, const char *mode)
{
    HnBlockFileObj *_obj;

    _obj = new HnBlockFileObj(fileName, mode);

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

    return _obj;
}

HnBlockFile
new_HnBlockFile(int blockSize)
{
    HnBlockFileObj *_obj;

    _obj = new HnBlockFileObj(blockSize);

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

    return _obj;
}

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

⌨️ 快捷键说明

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