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

📄 hnpoint.cpp

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

#include "HnSRTree/HnPoint.hh"
#include "HnSRTree/HnPointObj.hh"

/*
 * HnPoint
 */

const HnPoint HnPoint::null;

HnPoint
new_HnPoint(int dimension)
{
    HnPointObj *_obj;

    _obj = new HnPointObj(dimension);

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

    return _obj;
}

HnPoint
new_HnPoint(int dimension, HnBlockStream &blockStream)
{
    HnPointObj *_obj;

    _obj = new HnPointObj(dimension, blockStream);

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

    return _obj;
}

HnPoint
new_HnPoint(const HnPoint &point)
{
    HnPointObj *_obj;

    _obj = new HnPointObj(point);

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

    return _obj;
}

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

⌨️ 快捷键说明

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