Nepomuk
Nepomuk::Query::OrTerm Class Reference
#include <Nepomuk/Query/OrTerm>
Inheritance diagram for Nepomuk::Query::OrTerm:
Public Member Functions | |
| OrTerm () | |
| OrTerm (const OrTerm &term) | |
| OrTerm (const QList< Term > &terms) | |
| OrTerm (const Term &term1, const Term &term2, const Term &term3=Term(), const Term &term4=Term(), const Term &term5=Term(), const Term &term6=Term()) | |
| ~OrTerm () | |
| OrTerm & | operator= (const OrTerm &term) |
| Public Member Functions inherited from Nepomuk::Query::GroupTerm | |
| ~GroupTerm () | |
| void | addSubTerm (const Term &term) |
| void | setSubTerms (const QList< Term > &terms) |
| QList< Term > | subTerms () const |
| Public Member Functions inherited from Nepomuk::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 |
| AndTerm & | toAndTerm () |
| AndTerm | toAndTerm () const |
| ComparisonTerm & | toComparisonTerm () |
| ComparisonTerm | toComparisonTerm () const |
| LiteralTerm & | toLiteralTerm () |
| LiteralTerm | toLiteralTerm () const |
| NegationTerm & | toNegationTerm () |
| NegationTerm | toNegationTerm () const |
| OptionalTerm & | toOptionalTerm () |
| OptionalTerm | toOptionalTerm () const |
| OrTerm & | toOrTerm () |
| OrTerm | toOrTerm () const |
| ResourceTerm & | toResourceTerm () |
| ResourceTerm | toResourceTerm () const |
| ResourceTypeTerm & | toResourceTypeTerm () |
| ResourceTypeTerm | toResourceTypeTerm () const |
| QString | toString () const |
| Type | type () const |
Related Symbols | |
(Note that these are not member symbols.) | |
| Term | operator|| (const Term &term1, const Term &term2) |
| Related Symbols 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 } |
| Static Public Member Functions inherited from Nepomuk::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
◆ OrTerm() [1/4]
| Nepomuk::Query::OrTerm::OrTerm | ( | ) |
Default constructor: creates an invalid or-term.
◆ OrTerm() [2/4]
| Nepomuk::Query::OrTerm::OrTerm | ( | const OrTerm & | term | ) |
Copy constructor.
◆ OrTerm() [3/4]
| Nepomuk::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.
◆ OrTerm() [4/4]
| Nepomuk::Query::OrTerm::OrTerm | ( | const QList< Term > & | terms | ) |
Combine terms into one and-term.
◆ ~OrTerm()
| Nepomuk::Query::OrTerm::~OrTerm | ( | ) |
Destructor.
Member Function Documentation
◆ operator=()
Friends And Related Symbol Documentation
◆ operator||()
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2026 The KDE developers.
Generated on by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2026 The KDE developers.
Generated on by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.