System documentation of the GNU Image-Finding Tool

CQueryTreeNode.h
1 // -*- mode: c++ -*-
2 #ifndef _CQUERYTREENODE
3 #define _CQUERYTREENODE
4 #include "libMRML/include/uses-declarations.h"
5 #include "libMRML/include/CQuery.h"
6 
7 #ifdef LINK_DYNAMICALLY
8 #include "libMRML/include/CDynamicQueryFactory.h"
9 #else
10 #include "libMRML/include/CStaticQueryFactory.h"
11 #endif
12 
13 #include "libMRML/include/CSelfDestroyPointer.h"
14 #include "libMRML/include/CMagic.h"
15 
16 class CXMLElement;
17 class CAlgorithm;
19 
24 class CQueryTreeNode:public CMagic{
28  typedef list<pair<CQueryTreeNode*,double> > CChildren;
30  CChildren mChildren;
35  CQuery* mContent;
39  CAlgorithm* mAlgorithm;
40 public:
48  void configure(CXMLElement& inAlgorithm,
49  CAccessorAdminCollection& inAccessors,
50  CStaticQueryFactory& inBaseTypeFactory);
56  virtual CXMLElement* query(const CXMLElement& inQuery);
63  virtual CIDRelevanceLevelPairList* fastQuery(const CXMLElement& inQuery,
64  int inNumberOfInterestingImages,
65  double inDifferenceToBest);
72  void addChild(CQueryTreeNode* inChild,
73  double inWeight=1);
74 
75 };
76 
77 #endif
void addChild(CQueryTreeNode *inChild, double inWeight=1)
a query which returns ID/RelevanceLevel pairs instead of instead of URL/RelevanceLevel pairs ...
Definition: CIDRelevanceLevelPairList.h:52
virtual CIDRelevanceLevelPairList * fastQuery(const CXMLElement &inQuery, int inNumberOfInterestingImages, double inDifferenceToBest)
a query which returns ID/RelevanceLevel pairs instead of instead of URL/RelevanceLevel pairs ...
CQueryTreeNode()
Construct this.
This class captures the structure of an XML element.
Definition: CXMLElement.h:51
This class does nothing but wrap the current query interface in a way, that it can be used with CORBA...
Definition: CQueryTreeNode.h:24
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
A factory for base types of algorithms.
Definition: CStaticQueryFactory.h:38
~CQueryTreeNode()
Destruct this: delete all the children of this.
This is in fact a collection of collections.
Definition: CAccessorAdminCollection.h:39
virtual CXMLElement * query(const CXMLElement &inQuery)
do a query
void configure(CXMLElement &inAlgorithm, CAccessorAdminCollection &inAccessors, CStaticQueryFactory &inBaseTypeFactory)
Configure this.
This is a simple class for debugging.
Definition: CMagic.h:12

Need for discussion? Want to contribute? Contact
help-gift@gnu.org Generated using Doxygen