ATLAS Offline Software
IAddressProvider.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
13 #ifndef ATHENAKERNEL_IADDRESSPROVIDER_H
14 # define ATHENAKERNEL_IADDRESSPROVIDER_H
15 
16 #include <list>
17 #include "GaudiKernel/StatusCode.h"
18 #include "GaudiKernel/IInterface.h"
19 #include "AthenaKernel/StoreID.h"
20 
21 class EventContext;
22 namespace SG {
23  class TransientAddress;
24 }
25 
27  : virtual public IInterface
28 {
29 public:
31 
32  typedef std::list<SG::TransientAddress*> tadList;
34 
36  virtual StatusCode preLoadAddresses(StoreID::type /* storeID */,
37  tadList& /* list */) {
38  return StatusCode::SUCCESS;
39  }
40 
42  virtual StatusCode loadAddresses(StoreID::type /* storeID */,
43  tadList& /* list */) {
44  return StatusCode::SUCCESS;
45  }
46 
53  const EventContext& ctx) = 0;
54 
55  virtual ~IAddressProvider() {}
56 };
57 
58 
59 #endif // ATHENAKERNEL_IADDRESSPROVIDER_H
60 
61 
62 
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
IAddressProvider::updateAddress
virtual StatusCode updateAddress(StoreID::type storeID, SG::TransientAddress *pTAd, const EventContext &ctx)=0
update a transient Address The ctx argument will give the current event information.
SG::TransientAddress
Definition: TransientAddress.h:32
IAddressProvider::DeclareInterfaceID
DeclareInterfaceID(IAddressProvider, 1, 0)
IAddressProvider::tadListIterator
tadList::iterator tadListIterator
Definition: IAddressProvider.h:33
IAddressProvider::loadAddresses
virtual StatusCode loadAddresses(StoreID::type, tadList &)
get all new addresses from Provider for this Event.
Definition: IAddressProvider.h:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IAddressProvider
interface for IOA providers
Definition: IAddressProvider.h:28
StoreID.h
StoreID::type
type
Definition: StoreID.h:24
IAddressProvider::tadList
std::list< SG::TransientAddress * > tadList
Definition: IAddressProvider.h:32
IAddressProvider::~IAddressProvider
virtual ~IAddressProvider()
Definition: IAddressProvider.h:55
IAddressProvider::preLoadAddresses
virtual StatusCode preLoadAddresses(StoreID::type, tadList &)
get all addresses from Provider : Called before Begin Event
Definition: IAddressProvider.h:36