Nepomuk-Core
#include <Nepomuk2/Query/OrTerm>
Public Member Functions | |
OrTerm () | |
OrTerm (const OrTerm &term) | |
OrTerm (const Term &term1, const Term &term2, const Term &term3=Term(), const Term &term4=Term(), const Term &term5=Term(), const Term &term6=Term()) | |
OrTerm (const QList< Term > &terms) | |
~OrTerm () | |
OrTerm & | operator= (const OrTerm &term) |
Public Member Functions inherited from Nepomuk2::Query::GroupTerm | |
~GroupTerm () | |
void | addSubTerm (const Term &term) |
void | setSubTerms (const QList< Term > &terms) |
QList< Term > | subTerms () const |
Public Member Functions inherited from Nepomuk2::Query::Term | |
Term () | |
Term (const Term &other) | |
~Term () | |
bool | isAndTerm () const |
bool | isComparisonTerm () const |
bool | isLiteralTerm () const |
bool | isNegationTerm () const |
bool | isOptionalTerm () const |
bool | isOrTerm () const |
bool | isResourceTerm () const |
bool | isResourceTypeTerm () const |
bool | isValid () const |
bool | operator!= (const Term &term) const |
QDebug | operator<< (QDebug) const |
Term & | operator= (const Term &other) |
bool | operator== (const Term &term) const |
Term | optimized () const |
void | setUserData (const QString &key, const QVariant &value) |
AndTerm | toAndTerm () const |
AndTerm & | toAndTerm () |
ComparisonTerm | toComparisonTerm () const |
ComparisonTerm & | toComparisonTerm () |
LiteralTerm | toLiteralTerm () const |
LiteralTerm & | toLiteralTerm () |
NegationTerm | toNegationTerm () const |
NegationTerm & | toNegationTerm () |
OptionalTerm | toOptionalTerm () const |
OptionalTerm & | toOptionalTerm () |
OrTerm | toOrTerm () const |
OrTerm & | toOrTerm () |
ResourceTerm | toResourceTerm () const |
ResourceTerm & | toResourceTerm () |
ResourceTypeTerm | toResourceTypeTerm () const |
ResourceTypeTerm & | toResourceTypeTerm () |
QString | toString () const |
Type | type () const |
QVariant | userData (const QString &key) const |
Related Functions | |
(Note that these are not member functions.) | |
Term | operator|| (const Term &term1, const Term &term2) |
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 } |
Static Public Member Functions inherited from Nepomuk2::Query::Term | |
static Term | fromString (const QString &s) |
static Term | fromVariant (const Variant &variant) |
Detailed Description
Match resource that match at least one of the sub terms.
This class - like AndTerm - is derived from GroupTerm which handles the sub terms.
- Since
- 4.4
Constructor & Destructor Documentation
Nepomuk2::Query::OrTerm::OrTerm | ( | ) |
Default constructor: creates an invalid or-term.
Definition at line 44 of file orterm.cpp.
Nepomuk2::Query::OrTerm::OrTerm | ( | const OrTerm & | term | ) |
Copy constructor.
Definition at line 50 of file orterm.cpp.
Nepomuk2::Query::OrTerm::OrTerm | ( | const Term & | term1, |
const Term & | term2, | ||
const Term & | term3 = Term() , |
||
const Term & | term4 = Term() , |
||
const Term & | term5 = Term() , |
||
const Term & | term6 = Term() |
||
) |
Convinience constructor which allows to combine several terms in one line.
Definition at line 56 of file orterm.cpp.
Nepomuk2::Query::OrTerm::OrTerm | ( | const QList< Term > & | terms | ) |
Combine terms
into one and-term.
Definition at line 73 of file orterm.cpp.
Nepomuk2::Query::OrTerm::~OrTerm | ( | ) |
Destructor.
Definition at line 80 of file orterm.cpp.
Member Function Documentation
Nepomuk2::Query::OrTerm & Nepomuk2::Query::OrTerm::operator= | ( | const OrTerm & | term | ) |
Assignment operator.
Definition at line 85 of file orterm.cpp.
Friends And Related Function Documentation
Logical or operator which combines two terms into one term matching either term1
or term2
.
- 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.