📄 rtentry.cpp
字号:
// -*- Mode: C++ -*-// RTentry.cpp//// Copyright (c) 1996, Regents of the University of California// $Header: /usr/local/devel/GiST/libGiST/RTree/RTentry.cpp,v 1.1.1.1 1996/08/06 23:47:25 jmh Exp $//// R-Tree Entry Class#include "RT.h"GiSTpenalty * RTentry::Penalty(const GiSTentry &newEntry) const{ GiSTpenalty *retval = new GiSTpenalty; assert(newEntry.IsA() == RTENTRY_CLASS); const RTentry& e = (const RTentry &) newEntry; RTkey *tmpkey = Key().expand(e.Key()); // return area enlargement *retval = (MAX(tmpkey->area() - e.Key().area(), 0)); delete tmpkey; return((GiSTpenalty *)retval);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -