亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? indexbintree.h

?? 一個很好的vc代碼
?? H
字號:
/********************************************************************** * $Id: indexBintree.h,v 1.3 2004/10/26 17:46:18 strk Exp $ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2001-2002 Vivid Solutions Inc. * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Licence as published * by the Free Software Foundation.  * See the COPYING file for more information. * ********************************************************************** * $Log: indexBintree.h,v $ * Revision 1.3  2004/10/26 17:46:18  strk * Removed slash-stars in comments to remove annoying compiler warnings. * * Revision 1.2  2004/07/19 13:19:31  strk * Documentation fixes * * Revision 1.1  2004/07/02 13:20:42  strk * Header files moved under geos/ dir. * * Revision 1.6  2004/05/06 16:30:58  strk * Kept track of newly allocated objects by ensureExtent for Bintree and Quadtree, * deleted at destruction time. doc/example.cpp runs with no leaks. * * Revision 1.5  2004/03/25 02:23:55  ybychkov * All "index/" packages upgraded to JTS 1.4 * * Revision 1.4  2003/11/07 01:23:42  pramsey * Add standard CVS headers licence notices and copyrights to all cpp and h * files. * * **********************************************************************/#ifndef GEOS_INDEXBINTREE_H#define GEOS_INDEXBINTREE_H#include <memory>#include <vector>#include <geos/platform.h>#include <geos/geom.h>using namespace std;namespace geos {/* * \class BinTreeInterval indexBintree.h geos/indexBintree.h * \brief * Represents an (1-dimensional) closed interval on the Real number line. */class BinTreeInterval {public:	double min, max;	BinTreeInterval();	virtual ~BinTreeInterval();	BinTreeInterval(double nmin, double nmax);	BinTreeInterval(BinTreeInterval *interval);	void init(double nmin, double nmax);	double getMin();	double getMax();	double getWidth();	void expandToInclude(BinTreeInterval *interval);	bool overlaps(BinTreeInterval *interval);	bool overlaps(double nmin, double nmax);	bool contains(BinTreeInterval *interval);	bool contains(double nmin, double nmax);	bool contains(double p);};/* * \class Key indexBintree.h geos/indexBintree.h * \brief * A Key is a unique identifier for a node in a tree. * * It contains a lower-left point and a level number. * The level number is the power of two for the size of the node envelope */class Key {public:	static int computeLevel(BinTreeInterval *newInterval);	Key(BinTreeInterval *newInterval);	virtual ~Key();	double getPoint();	int getLevel();	BinTreeInterval* getInterval();	void computeKey(BinTreeInterval *itemInterval);private:	// the fields which make up the key	double pt;	int level;	// auxiliary data which is derived from the key for use in computation	BinTreeInterval *interval;	void computeInterval(int level,BinTreeInterval *itemInterval);};class BinTreeNode;/* * \class NodeBase indexBintree.h geos/indexBintree.h * \brief The base class for nodes in a Bintree. */class NodeBase {public:	static int getSubnodeIndex(BinTreeInterval *interval, double centre);	NodeBase();	virtual ~NodeBase();	virtual vector<void*> *getItems();	virtual void add(void* item);	virtual vector<void*>* addAllItems(vector<void*> *newItems);	virtual vector<void*>* addAllItemsFromOverlapping(BinTreeInterval *interval,vector<void*> *resultItems);	virtual int depth();	virtual int size();	virtual int nodeSize();protected:		vector<void*>* items;	/**	* subnodes are numbered as follows:	*	*  0 | 1	*/	BinTreeNode* subnode[2];	virtual bool isSearchMatch(BinTreeInterval *interval)=0;};/* * \class BinTreeNode indexBintree.h geos/indexBintree.h * \brief A node of a Bintree. */class BinTreeNode: public NodeBase {public:	static BinTreeNode* createNode(BinTreeInterval *itemInterval);	static BinTreeNode* createExpanded(BinTreeNode *node,BinTreeInterval *addInterval);	BinTreeNode(BinTreeInterval *newInterval,int newLevel);	virtual ~BinTreeNode();	BinTreeInterval* getInterval();	BinTreeNode* getNode(BinTreeInterval *searchInterval);	NodeBase* find(BinTreeInterval *searchInterval);	void insert(BinTreeNode *node);private:	BinTreeInterval *interval;	double centre;	int level;	BinTreeNode* getSubnode(int index);	BinTreeNode* createSubnode(int index);protected:	bool isSearchMatch(BinTreeInterval *itemInterval);};/* * \class Root indexBintree.h geos/indexBintree.h * \brief The root node of a single Bintree. * * It is centred at the origin, * and does not have a defined extent. */class Root: public NodeBase {private:	// the singleton root node is centred at the origin.	static double origin;	void insertContained(BinTreeNode *tree,BinTreeInterval *itemInterval,void* item);public:	Root();	virtual ~Root();	void insert(BinTreeInterval *itemInterval,void* item);protected:	bool isSearchMatch(BinTreeInterval *interval);};/* * \class Bintree indexBintree.h geos/indexBintree.h * * \brief An BinTree (or "Binary BinTreeInterval Tree") * is a 1-dimensional version of a quadtree. * * It indexes 1-dimensional intervals (which of course may * be the projection of 2-D objects on an axis). * It supports range searching * (where the range may be a single point). * * This implementation does not require specifying the extent of the inserted * items beforehand.  It will automatically expand to accomodate any extent * of dataset. *  * This index is different to the BinTreeInterval Tree of Edelsbrunner * or the Segment Tree of Bentley. */class Bintree {public:	static BinTreeInterval* ensureExtent(BinTreeInterval *itemInterval, double minExtent);	Bintree();	virtual ~Bintree();	int depth();	int size();	int nodeSize();	void insert(BinTreeInterval *itemInterval,void* item);	vector<void*>* iterator();	vector<void*>* query(double x);	vector<void*>* query(BinTreeInterval *interval);	void query(BinTreeInterval *interval,vector<void*> *foundItems);private:	vector<BinTreeInterval *>newIntervals;	Root *root;	/**	*  Statistics	*	* minExtent is the minimum extent of all items	* inserted into the tree so far. It is used as a heuristic value	* to construct non-zero extents for features with zero extent.	* Start with a non-zero extent, in case the first feature inserted has	* a zero extent in both directions.  This value may be non-optimal, but	* only one feature will be inserted with this value.	**/	double minExtent;	void collectStats(BinTreeInterval *interval);};}#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲精品bt天堂精选| 成人免费高清视频| 欧美日韩成人高清| 亚洲综合在线第一页| 欧美性色综合网| 日韩电影一二三区| 久久嫩草精品久久久久| 国产麻豆一精品一av一免费| 国产亚洲一区二区三区在线观看| 国产成人av在线影院| 国产精品毛片a∨一区二区三区| 成人午夜精品一区二区三区| 亚洲三级在线播放| 欧美视频在线不卡| 色悠悠久久综合| 亚洲精品中文在线影院| 欧美精品少妇一区二区三区| 免费久久精品视频| 国产欧美一区视频| 色素色在线综合| 奇米色一区二区| 国产精品天美传媒沈樵| 91国内精品野花午夜精品| 日韩av成人高清| 国产日韩欧美精品综合| 91丨九色丨蝌蚪丨老版| 日本不卡视频一二三区| 国产精品嫩草久久久久| 欧美少妇一区二区| 国模套图日韩精品一区二区| 亚洲免费三区一区二区| 欧美一区二区三区四区视频| 成人国产精品免费网站| 丝瓜av网站精品一区二区| 亚洲国产精品二十页| 欧美日本精品一区二区三区| 国产精品99久久久久| 亚洲福利一区二区| 欧美激情一区二区三区蜜桃视频 | 日韩不卡手机在线v区| 久久99久久99精品免视看婷婷| 国产成人8x视频一区二区| 精品视频1区2区| 亚洲国产高清aⅴ视频| 无码av免费一区二区三区试看| 狠狠色丁香婷综合久久| 欧美影院午夜播放| 国产网站一区二区三区| 日韩电影在线观看电影| av成人老司机| 国产亚洲精品资源在线26u| 尤物视频一区二区| 成人午夜激情影院| 精品国内二区三区| 亚洲国产va精品久久久不卡综合| 国产成人免费av在线| 日韩一区二区三| 亚洲一区在线视频观看| 播五月开心婷婷综合| 欧美精品一区二区三区蜜臀| 亚洲午夜一区二区| 91麻豆自制传媒国产之光| 国产欧美日韩在线观看| 久久国产精品72免费观看| 欧美日韩精品一区二区在线播放| 中文字幕一区二区三区不卡| 国产电影一区在线| 欧美变态口味重另类| 五月激情综合婷婷| 欧美美女bb生活片| 日韩美女久久久| 亚洲欧洲色图综合| 亚洲欧美自拍偷拍色图| 国产精品视频线看| 中文字幕成人av| 国产精品丝袜一区| 国产精品成人网| 国产精品久久久久久久久免费樱桃| 久久先锋影音av鲁色资源| 精品国产乱码久久久久久蜜臀| 欧美一区二区啪啪| 91精品国产乱码| 日韩午夜三级在线| 日韩精品中文字幕在线不卡尤物| 日韩免费性生活视频播放| 日韩一级在线观看| 久久众筹精品私拍模特| 久久一区二区视频| 久久久99精品免费观看不卡| 中文字幕精品综合| 亚洲日本护士毛茸茸| 亚洲综合视频在线| 99久久久精品| 色老汉一区二区三区| 在线免费观看日本欧美| 欧美日韩www| 日韩精品一区国产麻豆| 国产性天天综合网| 中文字幕在线观看一区| 亚洲一二三区在线观看| 日本中文一区二区三区| 国产伦精品一区二区三区免费| 国产不卡一区视频| 日本精品裸体写真集在线观看| 欧美色爱综合网| 精品伦理精品一区| 国产精品久久久久婷婷二区次| 国产精品不卡视频| 亚洲成人免费视| 国产九色sp调教91| 色哟哟一区二区三区| 宅男噜噜噜66一区二区66| 2021久久国产精品不只是精品| 国产精品久久久久影院色老大 | 亚洲国产精品成人久久综合一区| 国产精品第13页| 视频一区二区国产| 国产精品亚洲午夜一区二区三区 | av影院午夜一区| 欧美精选在线播放| 亚洲国产精品成人综合| 亚洲高清久久久| 大胆亚洲人体视频| 欧美三级韩国三级日本一级| 久久综合国产精品| 亚洲一区二区三区在线播放| 理论电影国产精品| 色噜噜狠狠一区二区三区果冻| 日韩欧美国产麻豆| 亚洲人成网站影音先锋播放| 久久av中文字幕片| 欧美三区在线观看| 欧美国产精品一区| 奇米一区二区三区| 在线精品视频免费观看| 国产情人综合久久777777| 日韩精品一二区| 91老司机福利 在线| 337p粉嫩大胆噜噜噜噜噜91av| 一区二区三区国产| 欧美一区欧美二区| 亚洲三级久久久| 国产一区二区电影| 日韩一级在线观看| 亚洲国产精品一区二区久久| av亚洲精华国产精华精| 久久综合狠狠综合久久激情| 天天综合网天天综合色| 91国产视频在线观看| 国产精品午夜春色av| 精品一区二区三区在线播放 | 欧美日韩免费视频| 亚洲色图在线视频| 成人av先锋影音| 欧美国产日产图区| 国产成人亚洲精品狼色在线| 日韩精品一区二区三区swag| 丝袜美腿亚洲综合| 欧美日本免费一区二区三区| 亚洲黄色小视频| 91久久人澡人人添人人爽欧美| 国产精品美女久久久久高潮| 国产一区二区看久久| 精品国产一区二区三区久久影院| 人人超碰91尤物精品国产| 在线播放国产精品二区一二区四区 | 麻豆91免费看| 欧美一级黄色片| 一本色道**综合亚洲精品蜜桃冫| 国产风韵犹存在线视精品| 成人app网站| 色偷偷88欧美精品久久久| 欧美性一级生活| 日韩免费性生活视频播放| 精品国产乱码91久久久久久网站| 久久综合久久鬼色中文字| 国产精品久久久久影院| 亚洲综合丁香婷婷六月香| 视频一区在线播放| 国产麻豆精品在线观看| 91亚洲国产成人精品一区二区三 | 久久精品国产99国产精品| 国产一区二区三区黄视频 | 午夜欧美大尺度福利影院在线看| 午夜精品影院在线观看| 激情综合网最新| 91女神在线视频| 欧美电影免费观看高清完整版在| 久久久99精品久久| 亚洲综合一区二区| 国产精品一二三四| 欧美亚洲国产一区二区三区| 欧美成人午夜电影| 亚洲欧美一区二区三区久本道91| 亚洲不卡一区二区三区| 国产乱色国产精品免费视频| 欧美综合天天夜夜久久| 国产欧美精品一区二区色综合 | av成人动漫在线观看| 91精品国产免费|