LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
getObjectRequireDict.h
Go to the documentation of this file.
1
#ifndef art_Framework_IO_Root_detail_getObjectRequireDict_h
2
#define art_Framework_IO_Root_detail_getObjectRequireDict_h
3
4
#include "
canvas/Utilities/TypeID.h
"
5
6
namespace
art
{
7
namespace
root {
8
9
namespace
detail {
10
void
require_dictionary
(
TypeID
const
&) noexcept(
false
);
11
}
12
13
template
<
typename
T>
14
T
15
getObjectRequireDict
() noexcept(false)
16
{
17
detail::require_dictionary
(
TypeID
{
typeid
(T)});
18
return
T{};
19
}
20
21
}
// namespace root
22
}
// namespace art
23
24
#endif
/* art_Framework_IO_Root_detail_getObjectRequireDict_h */
25
26
// Local Variables:
27
// mode: c++
28
// End:
art::root::detail::require_dictionary
void require_dictionary(TypeID const &) noexcept(false)
Definition:
getObjectRequireDict.cc:5
art::root::getObjectRequireDict
T getObjectRequireDict() noexcept(false)
Definition:
getObjectRequireDict.h:15
TypeID.h
art
HLT enums.
Definition:
ServiceProviderWrappers.h:36
art::TypeID
Definition:
TypeID.h:39
art
Framework
IO
Root
detail
getObjectRequireDict.h
Generated on Thu Jul 26 2018 13:09:40 for LArSoft by
1.8.11