Main Page   Compound List   File List   Compound Members   File Members   Related Pages  

XyRtreeRep Class Reference

XyRtreeRep is an interface class for an R-tree representation. More...

#include <Rtree.h>

List of all members.

Public Methods

Rhrh (RecId &recId)
virtual ~XyRtreeRep ()
virtual Rhrh ()
virtual void removeAll ()=0
 Removes all records from the R-tree.

virtual int insertRecord (RecId &)=0
 Inserts requested record into the R-tree.

virtual int deleteRecord (RecId &recId)
 Deletes requested record from the R-tree.

virtual SearcherRepnewSearcherRep ()=0
virtual void printLevel (short levelIdx)
 Prints information about given R-tree level to standard output.

virtual void printLevels (short topLevelIdx=0, short bottomLevelIdx=-1)
 Prints information about requested R-tree levels to standard output.

int insertRecord (int idx)
int deleteRecord (int idx)
int createSearcher (Searcher &searcher)
 Creates a searcher based on the newSearcherRep().

int createSearcher (Searcher &searcher, XyRange &searchRng)
 Creates a searcher based on the newSearcherRep().


Public Attributes

XyRtreeowner

Protected Methods

void init ()
 XyRtreeRep ()


Detailed Description

XyRtreeRep is an interface class for an R-tree representation.

Parameters:
owner  points to the handle class which owns this class.


Constructor & Destructor Documentation

XyRtreeRep   [inline, protected]
 

virtual ~XyRtreeRep   [inline, virtual]
 


Member Function Documentation

Rh* rh RecId   recId [inline]
 

void init   [inline, protected]
 

rh   [virtual]
 

Returns:
record handle (prototype) for interpreting records. Default is the owner's rhPrototype.

removeAll   [pure virtual]
 

Removes all records from the R-tree.

insertRecord RecId   recId [pure virtual]
 

Inserts requested record into the R-tree.

Parameters:
recId  is the identifier of the record to be inserted.
Returns:
SUCCESS if the record is successfuly inserted.

deleteRecord RecId   recId [inline, virtual]
 

Deletes requested record from the R-tree.

Parameters:
recId  is the identifier of the record to be deleted.
Returns:
SUCCESS if the record is found.

newSearcherRep   [pure virtual]
 

Returns:
representation of a searcher. Assumed to be destructable with delete operator.

printLevel short    levelIdx [inline, virtual]
 

Prints information about given R-tree level to standard output.

Parameters:
levelIdx  is the requested level index.

printLevels short    topLevelIdx = 0,
short    bottomLevelIdx = -1
[inline, virtual]
 

Prints information about requested R-tree levels to standard output.

Parameters:
topLevelIdx  is the level with the minimum requested index.
bottomLevelIdx  is the level with the maximum requested index. Value of -1 means the leaf level.

int insertRecord int    idx [inline]
 

int deleteRecord int    idx [inline]
 

createSearcher Searcher   searcher
 

Creates a searcher based on the newSearcherRep().

Parameters:
searcher  is the requested searcher.

createSearcher Searcher   searcher,
XyRange   searchRng
 

Creates a searcher based on the newSearcherRep().

Parameters:
searcher  is the requested searcher.
searchRng  is requested xy-range for searching.


Member Data Documentation

XyRtree* owner
 


Generated on Mon Mar 24 22:59:19 2003 for Mg R-tree Library by doxygen1.2.16