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
32
public
:
33
FunctorESHandleExceptionFactory
(
T
&& iFunctor) :
m_functor
(
std
::
move
(iFunctor)) {}
34
35
std::exception_ptr
make
()
const override
{
36
return
m_functor
();
37
}
38
private
:
39
T
m_functor
;
40
};
41
42
template
<
typename
T>
43
std::shared_ptr<ESHandleExceptionFactory>
makeESHandleExceptionFactory
(
T
&& iFunctor) {
44
return
std::make_shared<FunctorESHandleExceptionFactory<T>>(
std::move
(iFunctor));
45
}
46
}
47
#endif
edm::FunctorESHandleExceptionFactory::make
std::exception_ptr make() const override
Definition:
FunctorESHandleExceptionFactory.h:35
std
Definition:
JetResolutionObject.h:76
edm::FunctorESHandleExceptionFactory::FunctorESHandleExceptionFactory
FunctorESHandleExceptionFactory(T &&iFunctor)
Definition:
FunctorESHandleExceptionFactory.h:33
edm::makeESHandleExceptionFactory
std::shared_ptr< ESHandleExceptionFactory > makeESHandleExceptionFactory(T &&iFunctor)
Definition:
FunctorESHandleExceptionFactory.h:43
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:39
edm::ESHandleExceptionFactory
Definition:
ESHandleExceptionFactory.h:31
eostools.move
def move(src, dest)
Definition:
eostools.py:510
Generated for CMSSW Reference Manual by
1.8.11