Nepomuk-Core
#include <Nepomuk2/Query/NegationTerm>
Static Public Member Functions | |
static Term | negateTerm (const Term &term) |
Static Public Member Functions inherited from Nepomuk2::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 Nepomuk2::Query::Term | |
static Term | fromProperty (const Types::Property &property, const Variant &variant) |
Additional Inherited Members | |
Public Types inherited from Nepomuk2::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:
- Since
- 4.4
Definition at line 47 of file negationterm.h.
Constructor & Destructor Documentation
Nepomuk2::Query::NegationTerm::NegationTerm | ( | ) |
Default constructor: creates an invalid negation term.
Definition at line 77 of file negationterm.cpp.
Nepomuk2::Query::NegationTerm::NegationTerm | ( | const NegationTerm & | term | ) |
Copy constructor.
Definition at line 83 of file negationterm.cpp.
Nepomuk2::Query::NegationTerm::~NegationTerm | ( | ) |
Destructor.
Definition at line 89 of file negationterm.cpp.
Member Function Documentation
|
static |
Negate term
.
This method will either strip the first NegationTerm from term
or add one.
- Returns
- The negated term.
Definition at line 101 of file negationterm.cpp.
Nepomuk2::Query::NegationTerm & Nepomuk2::Query::NegationTerm::operator= | ( | const NegationTerm & | term | ) |
Assignment operator.
Definition at line 94 of file negationterm.cpp.
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:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.