?? rtentry.cpp
字號(hào):
// -*- 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);}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -