Main Page
Namespaces
Classes
Package Documentation
FWCore
Framework
interface
FunctorESHandleExceptionFactory.h
Go to the documentation of this file.
1
#ifndef FWCore_Framework_FunctorESHandleExceptionFactory_h
2
#define FWCore_Framework_FunctorESHandleExceptionFactory_h
3
// -*- C++ -*-
4
//
5
// Package: FWCore/Framework
6
// Class : FunctorESHandleExceptionFactory
7
//
16
//
17
// Original Author: W. David Dagenhart
18
// Created: 1 May 2014
19
//
20
21
#include "
FWCore/Framework/interface/ESHandleExceptionFactory.h
"
22
23
#include <exception>
24
#include <memory>
25
#include <utility>
26
27
namespace
edm
{
28
29
template
<
typename
T>
30
class
FunctorESHandleExceptionFactory
:
public
ESHandleExceptionFactory
{
31
public
:
32
FunctorESHandleExceptionFactory
(
T
&& iFunctor) :
m_functor
(
std
::
move
(iFunctor)) {}
33
34
std::exception_ptr
make
()
const override
{
return
m_functor
(); }
35
36
private
:
37
T
m_functor
;
38
};
39
40
template
<
typename
T>
41
std::shared_ptr<ESHandleExceptionFactory>
makeESHandleExceptionFactory
(
T
&& iFunctor) {
42
return
std::make_shared<FunctorESHandleExceptionFactory<T>>(
std::move
(iFunctor));
43
}
44
}
// namespace edm
45
#endif
edm::FunctorESHandleExceptionFactory::make
std::exception_ptr make() const override
Definition:
FunctorESHandleExceptionFactory.h:34
std
Definition:
JetResolutionObject.h:80
edm::FunctorESHandleExceptionFactory::FunctorESHandleExceptionFactory
FunctorESHandleExceptionFactory(T &&iFunctor)
Definition:
FunctorESHandleExceptionFactory.h:32
edm::makeESHandleExceptionFactory
std::shared_ptr< ESHandleExceptionFactory > makeESHandleExceptionFactory(T &&iFunctor)
Definition:
FunctorESHandleExceptionFactory.h:41
edm::FunctorESHandleExceptionFactory
Definition:
FunctorESHandleExceptionFactory.h:30
edm
HLT enums.
Definition:
AlignableModifier.h:17
ESHandleExceptionFactory.h
T
long double T
Definition:
Basic3DVectorLD.h:66
edm::FunctorESHandleExceptionFactory::m_functor
T m_functor
Definition:
FunctorESHandleExceptionFactory.h:37
edm::ESHandleExceptionFactory
Definition:
ESHandleExceptionFactory.h:31
eostools.move
def move(src, dest)
Definition:
eostools.py:511
Generated for CMSSW Reference Manual by
1.8.11