28 #include "libMRML/include/uses-declarations.h"
29 #include "libMRML/include/CQuery.h"
30 #include "libMRML/include/CSelfDestroyPointer.h"
54 #include "libMRML/include/CSelfDestroyPointer.h"
55 #include "libMRML/include/CIDRelevanceLevelPairList.h"
56 #include "libMRML/include/CRelevanceLevelList.h"
61 #include "libMRML/include/CAlgorithm.h"
62 #include "libMRML/include/CAccessor.h"
63 #include "libMRML/include/CAccessorAdminCollection.h"
64 #include "libMRML/include/CAccessorAdmin.h"
102 class lCLocalAccessor{
109 list<lCChildren::iterator> mUsedBy;
138 class lCLocalAccessorMap:
public map<string,lCLocalAccessor>{
143 lCLocalAccessorMap mAccessors;
177 int inNumberOfInterestingImages,
178 double inDifferenceToBest);
192 int inNumberOfInterestingImages,
193 double inDifferenceToBest);
Definition: CIDRelevanceLevelPairList.h:52
CQParallel(CAccessorAdminCollection &inAccessorAdminCollection, CAlgorithm &inAlgorithm)
In fact, what we are doing here is to get ourselves an accessor ACURL2FTS to do a proper fastQuery...
virtual list< TID > * getAllIDs() const
get the IDs of all images (handed through to accessor)
This class captures the structure of an XML element.
Definition: CXMLElement.h:51
virtual CXMLElement * getRandomImages(int inNumberOfInterestingImages) const
get some random images
virtual void init()
Initializer, used by both construcors.
Definition: CScoreBoard.h:60
virtual CXMLElement * query(const CXMLElement &inQuery, int inNumberOfInterestingImages, double inDifferenceToBest)
calls fastQuery for every child, merges the results and translates them back into URLs difficulty: ta...
An algorithm is a CXMLElement which is linked to a CSessionManager together they are able to build CQ...
Definition: CAlgorithm.h:43
The Query manager for Queries on inverted Files.
Definition: CQuery.h:73
virtual CIDRelevanceLevelPairList * fastQuery(const CXMLElement &inQuery, int inNumberOfInterestingImages, double inDifferenceToBest)
FIXME: useless in current scenario.
CAccessor * mAccessor
needed to translate URLs to IDs this is a pointer, only because we cannot change references it does n...
Definition: CQuery.h:81
CAccessorAdmin: The goal of this is to make it possible to have a list containing accessors to all po...
Definition: CAccessorAdmin.h:45
virtual list< string > * getAllURLs() const
get the IDs of all images (handed through to accessor)
This is in fact a collection of collections.
Definition: CAccessorAdminCollection.h:39
FIXME: The name WRONGLY suggests that this actually does parallel processing.
Definition: CQParallel.h:94
CAccessor - an abstract base class for everything accessing a GIFT database.
Definition: CAccessor.h:55
destroys the element it points to or not (depending on user's choice).
Definition: CSelfDestroyPointer.h:32
void finishInit()
it might be necessary to wait until all the children are added before ending the initialisation phase...
virtual list< pair< TID, string > > * getAllIDURLPairs() const
get the IDs of all images (handed through to accessor)
~CQParallel()
we need to unregister the accessors used
virtual bool setAlgorithm(CAlgorithm &inAlgorithm)
set the Algorithm.
CAccessorAdmin * mAccessorAdmin
This is where the the Accessor comes from.
Definition: CQuery.h:86