ATLAS Offline Software
ArenaHandleBase.icc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id: ArenaHandleBase.icc 470529 2011-11-24 23:54:22Z ssnyder $
6 /**
7  * @file AthAllocators/ArenaHandleBase.icc
8  * @author scott snyder
9  * @date May 2007
10  * @brief Base class for all @c Handle classes, containing parts that
11  * do not depend on the referenced type.
12  * Inline implementations.
13  */
14 
15 
16 namespace SG {
17 
18 
19 /**
20  * @brief Return the current Allocator which we are referencing.
21  *
22  * This may cause a new Allocator to be created.
23  *
24  * This is on the fast path for allocations, so keep it small and inline.
25  */
26 inline
27 ArenaAllocatorBase* ArenaHandleBase::baseAllocator()
28 {
29  return m_allocator.get();
30 }
31 
32 
33 /**
34  * @brief Return the current Allocator which we are referencing.
35  *
36  * This may cause a new Allocator to be created.
37  *
38  * This is on the fast path for allocations, so keep it small and inline.
39  */
40 inline
41 const ArenaAllocatorBase* ArenaHandleBase::baseAllocator() const
42 {
43  return m_allocator.get();
44 }
45 
46 
47 } // namespace SG