#include <CAccessor.h>
Inheritance diagram for CAccessor:
Public Member Functions | |
virtual | operator bool () const =0 |
virtual string | IDToURL (TID inID) const =0 |
virtual pair< bool, CAccessorElement > | IDToAccessorElement (TID inID) const =0 |
virtual pair< bool, TID > | URLToID (const string &inURL) const =0 |
virtual void | getAllIDs (list< TID > &) const =0 |
List of the IDs of all documents present in the inverted file. | |
virtual void | getAllAccessorElements (list< CAccessorElement > &) const =0 |
List of triplets (ID,imageURL,thumbnailURL) of all the documents present in the inverted file. | |
virtual void | getRandomIDs (list< TID > &, list< TID >::size_type) const =0 |
get a given number of random AccessorElement's | |
virtual void | getRandomAccessorElements (list< CAccessorElement > &outResult, list< CAccessorElement >::size_type inSize) const =0 |
For drawing random sets. | |
virtual int | size () const =0 |
The number of images in this accessor. | |
virtual | ~CAccessor () |
virtual accessor for clean destruction | |
Database Construction | |
virtual CXMLElement * | prepareDatabase () |
If a new collection is created during runtime, this function prepares the indexing structures such that they are able to accept new objects. | |
virtual bool | isPreparedDatabase () const |
Is the database accessed by this accessor prepared? In other words: is there an index structure to access? | |
Protected Member Functions | |
virtual void | dummy () const |
without this function things like upcasting etc. |
modification history:
WM 19990804 created file
compiler defines used:
|
without this function things like upcasting etc. won't work (see stroustrup for this) |
|
For drawing random sets. Why is this part of an CAccessor? 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.
Implemented in CAccessorImplementation, and CAcIFFileSystem. |
|
get a given number of random AccessorElement's
Implemented in CAccessorImplementation, and CAcIFFileSystem. |
|
Translate a DocumentID to an accessor Element Implemented in CAccessorImplementation, and CAcIFFileSystem. |
|
Translate a DocumentID to a URL (for output) Implemented in CAccessorImplementation, CAcIFFileSystem, CAcInvertedFile, and CAcInvertedFile. |
|
Is this accessor up and working? Implemented in CAccessorImplementation, CAcURL2FTS, CAcIFFileSystem, and CAcHierarchy. |
|
If a new collection is created during runtime, this function prepares the indexing structures such that they are able to accept new objects.
The collection id and name must be given when constructing
|
|
Translate an URL to its document ID Implemented in CAccessorImplementation, CAcIFFileSystem, CAcInvertedFile, and CAcInvertedFile. |