#include <CAccessorImplementation.h>
Inheritance diagram for CAccessorImplementation:
Public Member Functions | |
virtual | operator bool () const =0 |
virtual string | IDToURL (TID inID) const |
virtual pair< bool, CAccessorElement > | IDToAccessorElement (TID inID) const |
virtual pair< bool, TID > | URLToID (const string &inURL) const |
void | getAllIDs (list< TID > &) const |
List of the IDs of all documents present in the accessor file. | |
void | getAllAccessorElements (list< CAccessorElement > &) const |
List of triplets (ID,imageURL,thumbnailURL) of all the documents present in the inverted file. | |
void | getRandomIDs (list< TID > &, list< TID >::size_type) const |
get a given number of random AccessorElement's | |
void | getRandomAccessorElements (list< CAccessorElement > &outResult, list< CAccessorElement >::size_type inSize) const |
For drawing random sets. | |
int | size () const |
The number of images in this accessor. | |
Protected Attributes | |
for fast access... | |
string_TID_map | mURLToID |
map the url of an image to the id of this image | |
TID_CAccessorElement_map | mIDToAccessorElement |
maps the ID of an image to the URL of this image |
modification history:
WM 19990804 created file
compiler defines used:
|
For drawing random sets. Why is this part of an CAccessorImplementation? The way the accessor is organised might influence the way random sets can be drawn. At present everything happens in RAM, but we do not want to be fixed on that.
Implements CAccessor. Reimplemented in CAcIFFileSystem. |
|
get a given number of random AccessorElement's
Implements CAccessor. Reimplemented in CAcIFFileSystem. |
|
Translate a DocumentID to an accessor Element Implements CAccessor. Reimplemented in CAcIFFileSystem. |
|
Translate a DocumentID to a URL (for output) Implements CAccessor. Reimplemented in CAcIFFileSystem, CAcInvertedFile, and CAcInvertedFile. |
|
Is this accessor up and working? Implements CAccessor. Implemented in CAcURL2FTS, CAcIFFileSystem, and CAcHierarchy. |
|
Translate an URL to its document ID Implements CAccessor. Reimplemented in CAcIFFileSystem, CAcInvertedFile, and CAcInvertedFile. |