Belle II Software  release-08-01-10
Composition< AFunctor1, AFunctor2 > Struct Template Reference

Functor factory from the functional composition of two functors. More...

#include <Functional.h>

Public Member Functions

 operator FunctorTag ()
 Marker function for the isFunctor test.
 
 Composition ()=default
 Allow default construction.
 
 Composition (const AFunctor2 &functor2)
 Constructor from the nested functor.
 
 Composition (const AFunctor1 &functor1, const AFunctor2 &functor2)
 Constructor from the first and the nested functor.
 
template<class T >
auto operator() (const T &t) const -> decltype(m_functor1(m_functor2(t)))
 Operator getting the result of the function composition.
 

Private Attributes

AFunctor1 m_functor1
 Memory for the nested functor.
 
AFunctor2 m_functor2
 Memory for the nested functor.
 

Detailed Description

template<class AFunctor1, class AFunctor2>
struct Belle2::TrackFindingCDC::Composition< AFunctor1, AFunctor2 >

Functor factory from the functional composition of two functors.

Definition at line 87 of file Functional.h.


The documentation for this struct was generated from the following file: