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

SearcherRep Class Reference

SearcherRep is an interface class for a representation of an R-tree searcher. More...

#include <Rtree.h>

List of all members.

Public Methods

void init ()
 SearcherRep ()
virtual ~SearcherRep ()
virtual void setRange (XyRange &range)=0
 Sets requested search xy-range.

virtual void setPreStart ()=0
 Initializes the searcher to the "pre-start" position for subsequent search steps.

virtual int nextStep ()=0
 Performs a search step: steps to the next record the xy-range of which is overlapping with the search range.

virtual int processVisits ()
 Performs a callback-style traversal through records in search.

virtual int visit ()
 A callback function invoked everytime when a traversal step is made during processVisits().


Public Attributes

Searcherowner
XyRange searchRng

Friends

class Searcher


Detailed Description

SearcherRep is an interface class for a representation of an R-tree searcher.

Parameters:
owner  points to the handle class which owns this class.
searchRng  is the search range to perform search for.


Constructor & Destructor Documentation

SearcherRep   [inline]
 

virtual ~SearcherRep   [inline, virtual]
 


Member Function Documentation

void init   [inline]
 

setRange XyRange   range [pure virtual]
 

Sets requested search xy-range.

Parameters:
range  is the requested search range.

setPreStart   [pure virtual]
 

Initializes the searcher to the "pre-start" position for subsequent search steps.

nextStep   [pure virtual]
 

Performs a search step: steps to the next record the xy-range of which is overlapping with the search range.

The record id and range are stored in owner->cur.

Returns:
SUCCESS if the step has been successfuly made or FAILURE if no more records overlap with the search range.

processVisits   [virtual]
 

Performs a callback-style traversal through records in search.

This is an alternative (and less preferred) way for search traversal. It might be useful if some external implementation is to be used which does not support the "while SUCCESS == nextStep" style.

visit   [inline, virtual]
 

A callback function invoked everytime when a traversal step is made during processVisits().


Friends And Related Function Documentation

friend class Searcher [friend]
 


Member Data Documentation

Searcher* owner
 

XyRange searchRng
 


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