Qt Mobility Reference Documentation

QLandmarkIntersectionFilter Class Reference

The QLandmarkIntersectionFilter class provides a filter which intersects the results of its constituent filters. More...

 #include <QLandmarkIntersectionFilter>

Inherits QLandmarkFilter.


Public Functions

QLandmarkIntersectionFilter ()
QLandmarkIntersectionFilter ( const QLandmarkFilter & other )
virtual ~QLandmarkIntersectionFilter ()
void append ( const QLandmarkFilter & filter )
void clear ()
QList<QLandmarkFilter> filters () const
void prepend ( const QLandmarkFilter & filter )
void remove ( const QLandmarkFilter & filter )
void setFilters ( const QList<QLandmarkFilter> & filters )
QLandmarkIntersectionFilter & operator<< ( const QLandmarkFilter & filter )

Detailed Description

The QLandmarkIntersectionFilter class provides a filter which intersects the results of its constituent filters.

Conceptually it performs an AND operation and thus may be used to select landmarks which match all of it's constituent filters. If the intersection filter contains a proximity filter at the top level (i.e. which is not nested inside another filter) then the landmarks will be sorted by distance according to that filter. Note that a using sort order other than QLandmarkSortOrder (i.e. no sort) will override the sorting by distance).

Whether an intersection filter can be comprised of compound filters (i.e. union or intersection filters) is backend specific. Even if this is supported the performance of such a filter is likely to be poor.


Member Function Documentation

QLandmarkIntersectionFilter::QLandmarkIntersectionFilter ()

Constructs an intersection filter.

QLandmarkIntersectionFilter::QLandmarkIntersectionFilter ( const QLandmarkFilter & other )

Constructs a copy of other if possible, otherwise constructs a new intersection filter.

QLandmarkIntersectionFilter::~QLandmarkIntersectionFilter () [virtual]

Destroys the filter.

void QLandmarkIntersectionFilter::append ( const QLandmarkFilter & filter )

Appends the given filter to the list of intersected filters

See also operator<<(), prepend(), and filters().

void QLandmarkIntersectionFilter::clear ()

Removes all filters from the list of intersected filters.

QList<QLandmarkFilter> QLandmarkIntersectionFilter::filters () const

Returns the list of filters which form the intersection filter

See also setFilters(), prepend(), append(), and remove().

void QLandmarkIntersectionFilter::prepend ( const QLandmarkFilter & filter )

Prepends the given filter to the list of intersected filters

See also append() and filters().

void QLandmarkIntersectionFilter::remove ( const QLandmarkFilter & filter )

Removes the given filter from the list of intersected filters.

See also filters(), append(), and prepend().

void QLandmarkIntersectionFilter::setFilters ( const QList<QLandmarkFilter> & filters )

Sets the filters whose criteria will be intersected.

See also filters().

QLandmarkIntersectionFilter & QLandmarkIntersectionFilter::operator<< ( const QLandmarkFilter & filter )

Appends the given filter to the list of intersected filters

See also append().

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.