Nepomuk
Nepomuk::Query::OptionalTerm Class Reference
#include <Nepomuk/Query/OptionalTerm>
Inheritance diagram for Nepomuk::Query::OptionalTerm:

Public Member Functions | |
| OptionalTerm () | |
| OptionalTerm (const OptionalTerm &term) | |
| ~OptionalTerm () | |
| OptionalTerm & | operator= (const OptionalTerm &term) |
Static Public Member Functions | |
| static Term | optionalizeTerm (const Term &term) |
Detailed Description
Make a term optional.
OptionalTerm can be used to mark another term as optional. This is mostly useful with subterms of type ComparisonTerm (or an AndTerm combining ComparisonTerms) which either have additional bindings (ComparisonTerm::setVariableName()) or a specified sort weight (ComparisonTerm::setSortWeight()).
- Since:
- 4.5
Constructor & Destructor Documentation
| Nepomuk::Query::OptionalTerm::OptionalTerm | ( | ) |
Default constructor: creates an invalid optional term.
| Nepomuk::Query::OptionalTerm::OptionalTerm | ( | const OptionalTerm & | term | ) |
Copy constructor.
| Nepomuk::Query::OptionalTerm::~OptionalTerm | ( | ) |
Destructor.
Member Function Documentation
| OptionalTerm& Nepomuk::Query::OptionalTerm::operator= | ( | const OptionalTerm & | term | ) |
Assignment operator.
Mark term as optional.
This method will encasulate term in an OptionalTerm except if term is already of type OptionalTerm.
- Returns:
- The optional term.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed Nov 28 2012 09:46:16 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed Nov 28 2012 09:46:16 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.