DataModel_detail::Predwrapper< DVL, Predicate, DVL_Base > Struct Template Reference

Predicate helper for DataVector/List classes. More...

List of all members.

Public Types

typedef
DVL::BaseContainer::value_type 
inptr

Public Member Functions

 Predwrapper (Predicate pred)
bool operator() (inptr x)

Public Attributes

Predicate m_pred

Detailed Description

template<class DVL, class Predicate, class DVL_Base = typename DVL::DVL_BASE>
struct DataModel_detail::Predwrapper< DVL, Predicate, DVL_Base >

Predicate helper for DataVector/List classes.

When doing operations such as partition on a DataVector/List, we'd like to be able to give the operation the iterators of the underlying BaseContainer container, for the sake of efficiency. But we also have to make sure that the predicate sees the proper pointer types for derived DataVector/List classes. This can be done with the following functional wrapper. This wraps a predicate object, putting the arguments through DVLCast before calling the predicate.

There is also a specialization for the case where no casting is required.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1