Nepomuk
#include <Nepomuk/Query/OptionalTerm>
Static Public Member Functions | |
static Term | optionalizeTerm (const Term &term) |
Static Public Member Functions inherited from Nepomuk::Query::Term | |
static Term | fromString (const QString &s) |
static Term | fromVariant (const Variant &variant) |
Additional Inherited Members | |
Public Types inherited from Nepomuk::Query::Term | |
enum | Type { Invalid, Literal, Resource, And, Or, Comparison, ResourceType, Negation, Optional } |
Related Functions inherited from Nepomuk::Query::Term | |
static Term | fromProperty (const Types::Property &property, const Variant &variant) |
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
Definition at line 46 of file optionalterm.h.
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:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.