Nepomuk
Nepomuk::Query::NegationTerm Class Reference
#include <Nepomuk/Query/NegationTerm>
Inheritance diagram for Nepomuk::Query::NegationTerm:
Static Public Member Functions | |
static Term | negateTerm (const Term &term) |
Static Public Member Functions inherited from Nepomuk::Query::Term | |
static Term | fromString (const QString &s) |
static Term | fromVariant (const Variant &variant) |
Related Functions | |
(Note that these are not member functions.) | |
Term | operator! (const Term &term) |
Related Functions inherited from Nepomuk::Query::Term | |
static Term | fromProperty (const Types::Property &property, const Variant &variant) |
Additional Inherited Members | |
Public Types inherited from Nepomuk::Query::Term | |
enum | Type { Invalid, Literal, Resource, And, Or, Comparison, ResourceType, Negation, Optional } |
Detailed Description
Negate an arbitrary term.
NegationTerm can be used to negate any other term. A typical example could be to match all resources that do not have a specific tag:
NegationTerm::negateTerm( ComparisonTerm( Vocabulary::NAO::hasTag(), LiteralTerm("nepomuk") ) );
- Since
- 4.4
Definition at line 47 of file negationterm.h.
Constructor & Destructor Documentation
Nepomuk::Query::NegationTerm::NegationTerm | ( | ) |
Default constructor: creates an invalid negation term.
Nepomuk::Query::NegationTerm::NegationTerm | ( | const NegationTerm & | term | ) |
Copy constructor.
Nepomuk::Query::NegationTerm::~NegationTerm | ( | ) |
Destructor.
Member Function Documentation
Negate term
.
This method will either strip the first NegationTerm from term
or add one.
- Returns
- The negated term.
NegationTerm& Nepomuk::Query::NegationTerm::operator= | ( | const NegationTerm & | term | ) |
Assignment operator.
Friends And Related Function Documentation
Logical negation operator which negates the meaning of one term.
- See also
- NegationTerm::negateTerm()
- Since
- 4.6
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.