#include <CAccessor.h>
Inheritance diagram for CAccessor:
Public Member Functions | |
virtual | operator bool () const =0 |
Is this accessor up and working? | |
virtual string | IDToURL (TID inID) const =0 |
Translate a DocumentID to a URL (for output). | |
virtual pair< bool, CAccessorElement > | IDToAccessorElement (TID inID) const =0 |
Translate a DocumentID to an accessor Element. | |
virtual pair< bool, TID > | URLToID (const string &inURL) const =0 |
Translate an URL to its document ID. | |
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. |
in the future this might be an SQL database or Monet??
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. |
|
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
|