ATLAS Offline Software
Loading...
Searching...
No Matches
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.
 ~Push ()
 Destructor.

Private Attributes

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

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}
static Double_t a
ArenaBase * m_prev
The previously-current arena.
Definition Arena.h:294
ArenaHeader * m_header
The ArenaHeader for the stack we're managing.
Definition Arena.h:291

◆ ~Push()

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

Destructor.

Undoes the effect of the constructor.

Definition at line 79 of file Arena.cxx.

80{
81 m_header->setArena (m_prev);
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: