27 #include "libMRML/include/CAccessorElement.h" 28 #include "libMRML/include/CXMLElement.h" 52 #include "libMRML/include/uses-declarations.h" 55 #include "libMRML/include/CSelfDestroyPointer.h" 56 #include "libMRML/include/CIDRelevanceLevelPairList.h" 57 #include "libMRML/include/CXMLElement.h" 62 #include "libMRML/include/CAlgorithm.h" 63 #include "libMRML/include/CAccessor.h" 64 #include "libMRML/include/CAccessorAdminCollection.h" 65 #include "libMRML/include/CAccessorAdmin.h" 66 #include "libMRML/include/CMagic.h" 124 virtual void init()=0;
177 int inNumberOfInterestingImages,
178 double inDifferenceToBest)=0;
double mWeight
the weight
Definition: CQuery.h:108
virtual bool setAlgorithm(CAlgorithm &inAlgorithm)
set the Algorithm.
Definition: CIDRelevanceLevelPairList.h:52
virtual void finishInit()
it might be necessary to wait until all the children are added before ending the initialisation phase...
This class captures the structure of an XML element.
Definition: CXMLElement.h:51
CAlgorithm * mAlgorithm
the structure containing everything we know about the algorithm used do not destroy this ...
Definition: CQuery.h:98
CQuery * mQuery
the child itself
Definition: CQuery.h:106
const CAlgorithm & getAlgorithm() const
get the Algorithm.
virtual list< CAccessorElement > * getAllAccessorElements() const
get the IDs of all images (handed through to accessor)
Definition: CScoreBoard.h:60
CQuery()
default constructor
virtual CXMLElement * getRandomImages(int inNumberOfInterestingImages) const
get some random images (handed through to accessor)
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
void addChild(CQuery *inChild, double inWeight=1)
adding a child to this.
virtual ~CQuery()
destructor
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
virtual CXMLElement * query(const CXMLElement &inQuery)
do a query
A child of this.
Definition: CQuery.h:103
virtual CIDRelevanceLevelPairList * fastQuery(const CXMLElement &inQuery, int inNumberOfInterestingImages, double inDifferenceToBest)=0
a query which returns ID/RelevanceLevel pairs instead of instead of URL/RelevanceLevel pairs ...
CAccessorAdmin: The goal of this is to make it possible to have a list containing accessors to all po...
Definition: CAccessorAdmin.h:45
This is in fact a collection of collections.
Definition: CAccessorAdminCollection.h:39
virtual void init()=0
Initializer, used by both construcors.
lCChildren mChildren
The children of this.
Definition: CQuery.h:114
CAccessor - an abstract base class for everything accessing a GIFT database.
Definition: CAccessor.h:55
virtual list< TID > * getAllIDs() const
get the IDs of all images (handed through to accessor)
virtual CIDRelevanceLevelPairList * getRandomIDs(int inNumberOfInterestingImages) const
get some random images (handed through to accessor)
CAccessorAdminCollection * mAccessorAdminCollection
Where to get CAccessorAdmins from.
Definition: CQuery.h:91
list< lCChild > lCChildren
type for children of this
Definition: CQuery.h:111
CAccessorAdmin * mAccessorAdmin
This is where the the Accessor comes from.
Definition: CQuery.h:86
This is a simple class for debugging.
Definition: CMagic.h:12