27 #include "libMRML/include/uses-declarations.h" 30 #include "libMRML/include/TID.h" 32 #ifdef GIFT_MULTI_THREAD 36 #include "libMRML/include/CMutex.h" 37 #include "libMRML/include/CAccessorElement.h" 62 virtual void dummy()
const;
70 virtual operator bool()
const=0;
77 virtual string IDToURL(TID inID)
const=0;
90 virtual pair<bool,TID>
URLToID(
const string& inURL)
const=0;
100 virtual void getAllIDs(list<TID>&)
const=0;
109 list<TID>::size_type)
const=0;
119 list<CAccessorElement>::size_type inSize)
const=0;
121 virtual int size()
const=0;
virtual pair< bool, TID > URLToID(const string &inURL) const =0
Translate an URL to its document ID.
virtual void getRandomIDs(list< TID > &, list< TID >::size_type) const =0
get a given number of random AccessorElement's
virtual void getAllAccessorElements(list< CAccessorElement > &) const =0
List of triplets (ID,imageURL,thumbnailURL) of all the documents present in the inverted file...
This class captures the structure of an XML element.
Definition: CXMLElement.h:51
virtual CXMLElement * prepareDatabase()
If a new collection is created during runtime, this function prepares the indexing structures such th...
virtual void getAllIDs(list< TID > &) const =0
This is useful for making lists of which images are present in a database etc.
virtual void dummy() const
without this function things like upcasting etc.
CAccessor - an abstract base class for everything accessing a GIFT database.
Definition: CAccessor.h:55
virtual string IDToURL(TID inID) const =0
Translate a DocumentID to a URL (for output)
virtual int size() const =0
The number of images in this accessor.
virtual bool isPreparedDatabase() const
Is the database accessed by this accessor prepared? In other words: is there an index structure to ac...
virtual ~CAccessor()
virtual accessor for clean destruction
virtual pair< bool, CAccessorElement > IDToAccessorElement(TID inID) const =0
Translate a DocumentID to an accessor Element.
virtual void getRandomAccessorElements(list< CAccessorElement > &outResult, list< CAccessorElement >::size_type inSize) const =0
For drawing random sets.