ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SG::Arena::Push Class Reference

Helper class for making Arena instances current in a stack-like manner. More...

#include <Arena.h>

Collaboration diagram for SG::Arena::Push:

Public Member Functions

 Push (Arena &a)
 Constructor. More...
 
 ~Push ()
 Destructor. More...
 

Private Attributes

ArenaHeaderm_header
 The ArenaHeader for the stack we're managing. More...
 
ArenaBasem_prev
 The previously-current arena. More...
 

Detailed Description

Helper class for making Arena instances current in a stack-like manner.

Definition at line 272 of file Arena.h.

Constructor & Destructor Documentation

◆ Push()

SG::Arena::Push::Push ( Arena a)

Constructor.

Make a current.

Parameters
aThe Arena to make current.

Definition at line 69 of file Arena.cxx.

70  : m_header (a.header()),
71  m_prev (a.makeCurrent())
72 {
73 }

◆ ~Push()

SG::Arena::Push::~Push ( )

Destructor.

Undoes the effect of the constructor.

Definition at line 79 of file Arena.cxx.

80 {
82 }

Member Data Documentation

◆ m_header

ArenaHeader* SG::Arena::Push::m_header
private

The ArenaHeader for the stack we're managing.

Definition at line 291 of file Arena.h.

◆ m_prev

ArenaBase* SG::Arena::Push::m_prev
private

The previously-current arena.

Definition at line 294 of file Arena.h.


The documentation for this class was generated from the following files:
SG::Arena::Push::m_header
ArenaHeader * m_header
The ArenaHeader for the stack we're managing.
Definition: Arena.h:291
SG::Arena::Push::m_prev
ArenaBase * m_prev
The previously-current arena.
Definition: Arena.h:294
a
TList * a
Definition: liststreamerinfos.cxx:10
SG::ArenaHeader::setArena
ArenaBase * setArena(ArenaBase *arena)
Set the current Arena for the current thread.
Definition: ArenaHeader.cxx:59