System documentation of the GNU Image-Finding Tool
Main Page
Classes
Files
File List
libMRML
include
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
;
18
class
CStaticQueryFactory
;
19
24
class
CQueryTreeNode
:
public
CMagic
{
28
typedef
list<pair<CQueryTreeNode*,double> > CChildren;
30
CChildren mChildren;
35
CQuery
* mContent;
39
CAlgorithm
* mAlgorithm;
40
public
:
42
CQueryTreeNode
();
44
~CQueryTreeNode
();
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
Need for discussion? Want to contribute? Contact
help-gift@gnu.org
Generated using Doxygen