System documentation of the GNU Image-Finding Tool

Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
CAlgorithmCollection Class Reference

The algorithm collection is kind of a factory for CQuery structures: More...

#include <CAlgorithmCollection.h>

Inheritance diagram for CAlgorithmCollection:
CStaticQueryFactory CSessionManager

List of all members.

Public Member Functions

CAlgorithmgetAlgorithmInConstruction ()
 returns a pointer to the algorithm in construction
void startAlgorithmConstruction (CAlgorithm *inAlgorithm)
 CAlgorithmCollection (string inConfigFileName)
 Constructor.
 ~CAlgorithmCollection ()
 Destructor destroys all members of CContent.
void addAlgorithm (CAlgorithm *inAlgorithm)
 adding a completely built algorithm XML document tree
CAlgorithmgetAlgorithmByType (const string &inType) const
 Algorithm for TYPE => permits configuring probably only the pointered version is interesting.
bool containsAlgorithmByType (const string &inType) const
 Algorithm for TYPE => permits configuring probably only the pointered version is interesting.
CAlgorithmmakeAlgorithmByType (const string &inType) const
 Creates a new algorithm for agiven type by cloning what you would get with getAlgorithm.
CAlgorithmgetDefaultAlgorithm () const
 A default algorithm for the default session This algorithm will be given by the ONE ALGORITHM which has the type "adefault".
CAlgorithmmakeDefaultAlgorithm () const
 creates a copy of what you'd get with the above function get...
CXMLElementgetAlgorithmList (const CXMLElement &inGetAlgorithms) const
 For handshaking: This makes you a list of all algorithms which work with a given query paradigm.
string toXML (bool inIsPrivate=false) const
 for shandshake and for state output
CXMLElementtoXMLElement () const
 for get-algorithms: the output is an CXMLElement, containing an algorithm-list element.
CQuerymakeQuery (const string &inBaseType, CAccessorAdminCollection &inAccessorAdminCollection, CAlgorithm &inAlgorithm, CStaticQueryFactory &inFactory)
 handed through to the CStaticQueryFactory

Protected Types

typedef map< string, CAlgorithm * > CContent
 The content of an algorithm collection is a map between algorihm type and a pointer to the corresponding CAlgorithm.

Protected Member Functions

CContent::const_iterator begin () const
 for being able to read all the content
CContent::const_iterator end () const
 for being able to read all the content

Protected Attributes

CAlgorithmmAlgorithmInConstruction
 as the name sais
CContent mContent

Detailed Description

The algorithm collection is kind of a factory for CQuery structures:

We provide a list of algorithms which correspond to so-called "basetypes". At present there are only two: bayesian and inverted_file.

Each algorithm which will be configured in the configuration file will have a basetype. Corresponding to this there is generated a CQuery structure for each algorithm out of the configuration.

Wolfgang Mueller


Member Function Documentation

CAlgorithm* CAlgorithmCollection::makeAlgorithmByType ( const string &  inType) const

Creates a new algorithm for agiven type by cloning what you would get with getAlgorithm.

The values made here will be used as default in the subsequent CQuery building process.

creates a copy of what you'd get with the above function get...


The documentation for this class was generated from the following file:

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