ATLAS Offline Software
Loading...
Searching...
No Matches
AthMemMacros.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// AthMemMacros.h
8// Header file for useful macros when comes to using SegMemSvc
9// Author: S.Binet<binet@cern.ch>
10// $Revision$
12#ifndef ATHENABASECOMPS_ATHMEMMACROS_H
13#define ATHENABASECOMPS_ATHMEMMACROS_H 1
14
15// framework includes
16#include "StoreGate/SegMemSvc.h"
17
18// non-caching macros
19#define ATH_NEW(T) \
20 new(this->memSvc()->SegMemSvc::allocate< T >(::SegMemSvc::EVENT,false))T
21
22// caching macros
23#define ATH_CNEW(T) \
24 new(this->memSvc()->SegMemSvc::allocate< T >(::SegMemSvc::EVENT, true))T
25
26#endif //> !ATHENABASECOMPS_ATHMEMMACROS_H
27