This is a simple hierarchy based browser. More...
#include <CQHierarchy.h>
Public Member Functions | |
CQHierarchy () | |
default constructor More... | |
~CQHierarchy () | |
we need to unregister the accessors used More... | |
CQHierarchy (CAccessorAdminCollection &inAccessorAdminCollection, CAlgorithm &inAlgorithm) | |
In fact, what we are doing here is to get ourselves an accessor ACURL2FTS to do a proper fastQuery. | |
virtual CIDRelevanceLevelPairList * | fastQuery (const CXMLElement &inQuery, int inNumberOfInterestingImages, double inDifferenceToBest) |
enables moving in the hierarchy. More... | |
virtual bool | setAlgorithm (CAlgorithm &inAlgorithm) |
set the Algorithm. | |
![]() | |
CQuery () | |
default constructor More... | |
virtual | ~CQuery () |
destructor More... | |
CQuery (CAccessorAdminCollection &inAccessorAdminCollection, CAlgorithm &inAlgorithm) | |
this constructor takes all the information ANY CQuery needs to configure itself. More... | |
void | addChild (CQuery *inChild, double inWeight=1) |
adding a child to this. More... | |
virtual CXMLElement * | query (const CXMLElement &inQuery) |
do a query More... | |
virtual CXMLElement * | getRandomImages (int inNumberOfInterestingImages) const |
get some random images (handed through to accessor) More... | |
virtual CIDRelevanceLevelPairList * | getRandomIDs (int inNumberOfInterestingImages) const |
get some random images (handed through to accessor) More... | |
virtual list< TID > * | getAllIDs () const |
get the IDs of all images (handed through to accessor) More... | |
virtual list< CAccessorElement > * | getAllAccessorElements () const |
get the IDs of all images (handed through to accessor) More... | |
const CAlgorithm & | getAlgorithm () const |
get the Algorithm. More... | |
virtual void | finishInit () |
it might be necessary to wait until all the children are added before ending the initialisation phase. More... | |
![]() | |
void | check () const |
This function checks the magic number of this and asserts to zero, if something is wrong, if things are ok, this function keeps quiet. | |
void | checkNPrint () const |
as check(), but it also prints a small message to cout, saying that the check worked. | |
CMagic () | |
sets the magic number to 42 | |
~CMagic () | |
sets the magic number to another value (36) | |
Protected Member Functions | |
void | init () |
sets mCurrentPosition to 0 | |
Protected Attributes | |
list< TID > | mCurrentPath |
The current position in the hierarchy. | |
![]() | |
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. More... | |
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. | |
Additional Inherited Members | |
![]() | |
typedef list< lCChild > | lCChildren |
type for children of this | |
This is a simple hierarchy based browser.
: Wolfgang Müller
CQHierarchy::CQHierarchy | ( | ) |
default constructor
CQHierarchy::~CQHierarchy | ( | ) |
we need to unregister the accessors used
|
virtual |
enables moving in the hierarchy.
You can either move down (i.e. you select an image) or up in the hierarchy (by getting a cui-hierarchy-move-up signal as query). RICHLY COMMENTED IN THE *.cc FILE.
inQuery | an CXMLElement containing a query-step element |
inNumberOfInterestingImages | preferred number of result images (ignored) |
inDifferenceToBest | preferred relevance cutoff (ignored) |
Implements CQuery.