25 #ifndef MOBJECT_SESSION_SPECIFIC_CONTENTS_QUERY_H 26 #define MOBJECT_SESSION_SPECIFIC_CONTENTS_QUERY_H 57 typedef typename ContentsQuery<MO>::ContentFilter ContentFilter;
61 typedef function<bool(TypedPlacement)> SpecialPredicate;
72 SpecialPredicate predicate_;
75 Filter (SpecialPredicate
const& pred)
82 if (!anyMO.isCompatible<MO>())
85 TypedPlacement interestingObject =
static_cast<TypedPlacement
> (anyMO);
86 return predicate_(interestingObject);
107 ,SpecialPredicate
const& specialPred)
109 , specialTest_(specialPred)
152 template<
typename FUNC>
156 typedef typename _PickResult<FUNC>::FilterQuery
Query;
158 return Query(scope, predicate);
166 template<
typename FUNC>
167 inline typename _PickResult<FUNC>::Iterator
170 typedef typename _PickResult<FUNC>::FilterQuery
Query;
172 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...