LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
RefCore.cc
Go to the documentation of this file.
1
// ======================================================================
2
//
3
// RefCore: The component of art::Ptr containing
4
// - the product ID and
5
// - the product getter.
6
//
7
// ======================================================================
8
9
#include "
canvas/Persistency/Common/RefCore.h
"
10
11
#include "
canvas/Utilities/Exception.h
"
12
#include <cassert>
13
14
bool
15
art::RefCore::isAvailable
()
const
16
{
17
return
productPtr
() !=
nullptr
||
18
(
id_
.
isValid
() &&
productGetter
() != 0 &&
productGetter
()->
isReady
() &&
19
productGetter
()->
getIt
() !=
nullptr
);
20
}
art::EDProductGetter::getIt
virtual EDProduct const * getIt() const =0
RefCore.h
art::RefCore::isAvailable
bool isAvailable() const
Definition:
RefCore.cc:15
art::RefCore::productGetter
EDProductGetter const * productGetter() const
Definition:
RefCore.h:105
art::EDProductGetter::isReady
virtual bool isReady() const =0
art::ProductID::isValid
bool isValid() const
Definition:
ProductID.h:33
art::RefCore::id_
ProductID id_
Definition:
RefCore.h:65
art::RefCore::productPtr
void const * productPtr() const
Definition:
RefCore.h:99
Exception.h
canvas
Persistency
Common
RefCore.cc
Generated on Wed Dec 12 2018 14:42:35 for LArSoft by
1.8.11