34 #ifndef MOBJECT_SESSION_SPECIFIC_CONTENTS_QUERY_H 35 #define MOBJECT_SESSION_SPECIFIC_CONTENTS_QUERY_H 66 typedef typename ContentsQuery<MO>::ContentFilter ContentFilter;
70 typedef function<bool(TypedPlacement)> SpecialPredicate;
81 SpecialPredicate predicate_;
84 Filter (SpecialPredicate
const& pred)
91 if (!anyMO.isCompatible<MO>())
94 TypedPlacement interestingObject =
static_cast<TypedPlacement
> (anyMO);
95 return predicate_(interestingObject);
116 ,SpecialPredicate
const& specialPred)
118 , specialTest_(specialPred)
161 template<
typename FUNC>
165 typedef typename _PickResult<FUNC>::FilterQuery
Query;
167 return Query(scope, predicate);
175 template<
typename FUNC>
176 inline typename _PickResult<FUNC>::Iterator
179 typedef typename _PickResult<FUNC>::FilterQuery
Query;
181 return Query(scope, predicate ).resolveBy(resolver);
Filter functor, built on top of a predicate, which is provided by the client on creation of this Spec...
A refcounting Handle to an MObject of type MO, used to constrain or explicitly specify the location w...
Interface: a facility for resolving (some kind of) queries A concrete subclass has the ability to cre...
framework and to resolve logical queries.
Core abstraction: placement of a media object into session context.
_PickResult< FUNC >::FilterQuery pickAllSuitable(PlacementMO const &scope, FUNC predicate)
convenience shortcut to issue a SpecificContentsQuery, figuring out the actual return/filter type aut...
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
ContentFilter buildContentFilter() const
using a specialised version of the filtering, which doesn't only check the concrete type...
from the session, based on a filter predicate.
Specific queries to explore contents of a scope within the high-level model.
Adapter for building an implementation of the »Lumiera Forward Iterator« concept. ...
Generic interface to express a query for specifically typed result elements exposing some capabilitie...