#include <CQuery.h>
Inheritance diagram for CQuery:
Public Member Functions | |
CQuery () | |
virtual | ~CQuery () |
CQuery (CAccessorAdminCollection &inAccessorAdminCollection, CAlgorithm &inAlgorithm) | |
void | addChild (CQuery *inChild, double inWeight=1) |
adding a child to this. | |
virtual CXMLElement * | query (const CXMLElement &inQuery) |
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 | |
virtual CXMLElement * | getRandomImages (int inNumberOfInterestingImages) const |
virtual CIDRelevanceLevelPairList * | getRandomIDs (int inNumberOfInterestingImages) const |
virtual list< TID > * | getAllIDs () const |
virtual list< CAccessorElement > * | getAllAccessorElements () const |
virtual bool | setAlgorithm (CAlgorithm &inAlgorithm) |
const CAlgorithm & | getAlgorithm () const |
virtual void | finishInit () |
it might be necessary to wait until all the children are added before ending the initialisation phase. | |
Protected Types | |
typedef list< lCChild > | lCChildren |
type for children of this | |
Protected Member Functions | |
virtual void | init ()=0 |
Protected Attributes | |
CAccessor * | mAccessor |
needed to translate URLs to IDs this is a pointer, only because we cannot change references it does not imply any destruction responsability | |
CAccessorAdmin * | mAccessorAdmin |
This is where the the Accessor comes from. | |
CAccessorAdminCollection * | mAccessorAdminCollection |
Where to get CAccessorAdmins from. | |
CAlgorithm * | mAlgorithm |
the structure containing everything we know about the algorithm used do not destroy this | |
lCChildren | mChildren |
The children of this. | |
Classes | |
class | lCChild |
A child of this. More... |
|
default constructor |
|
destructor |
|
this constructor takes all the information ANY CQuery needs to configure itself. inAccessorAdminCollection The CQuery needs to know where to get the right accessor from. inAlgorithm This structure contains all the information about the algorithm, including which accessor to get. |
|
adding a child to this. We expect children to be nonzero and initialised when they are entered. this assumes no destruction responsabilities for the entered data. |
|
it might be necessary to wait until all the children are added before ending the initialisation phase. This function is called by CAlgorithm. Reimplemented in CQParallel, and CQInvertedFile. |
|
get the Algorithm. same scheme as in setCollection |
|
get the IDs of all images (handed through to accessor) |
|
get the IDs of all images (handed through to accessor) Reimplemented in CQParallel. |
|
get some random images (handed through to accessor) |
|
get some random images (handed through to accessor) Reimplemented in CQParallel. |
|
Initializer, used by both construcors Implemented in CQMultiple, CQParallel, CQInvertedFile, and CQHierarchy. |
|
do a query Reimplemented in CQMultiple. |
|
set the Algorithm. set a new algorithm. Build a new query if necessary. Reimplemented in CQMultiple, CQParallel, CQInvertedFile, and CQHierarchy. |
|
This is where the the Accessor comes from. Also the AccessorAdmin is not to be deleted by this. |