ATLAS Offline Software
Classes | Public Member Functions | Private Attributes | List of all members
Trig::CacheGlobalMemory::AnyTypeDeleter Class Reference
Collaboration diagram for Trig::CacheGlobalMemory::AnyTypeDeleter:

Classes

class  holder
 
struct  holder_comp
 
struct  iholder
 

Public Member Functions

template<class T >
void insert (T t)
 
void clear ()
 
 ~AnyTypeDeleter ()
 

Private Attributes

std::set< iholder *, holder_compm_todel
 

Detailed Description

Definition at line 231 of file CacheGlobalMemory.h.

Constructor & Destructor Documentation

◆ ~AnyTypeDeleter()

Trig::CacheGlobalMemory::AnyTypeDeleter::~AnyTypeDeleter ( )

Definition at line 417 of file CacheGlobalMemory.cxx.

418 {
419  clear();
420 }

Member Function Documentation

◆ clear()

void Trig::CacheGlobalMemory::AnyTypeDeleter::clear ( )
inline

Definition at line 260 of file CacheGlobalMemory.h.

260  {
261  for(iholder* i : m_todel) {
262  delete i;
263  }
264  m_todel.clear();
265  }

◆ insert()

template<class T >
void Trig::CacheGlobalMemory::AnyTypeDeleter::insert ( t)
inline

Definition at line 257 of file CacheGlobalMemory.h.

257  {
258  m_todel.insert(new holder<T>(t));
259  }

Member Data Documentation

◆ m_todel

std::set< iholder*, holder_comp > Trig::CacheGlobalMemory::AnyTypeDeleter::m_todel
private

Definition at line 268 of file CacheGlobalMemory.h.


The documentation for this class was generated from the following files:
Trig::CacheGlobalMemory::AnyTypeDeleter::clear
void clear()
Definition: CacheGlobalMemory.h:260
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
lumiFormat.i
int i
Definition: lumiFormat.py:92
Trig::CacheGlobalMemory::AnyTypeDeleter::m_todel
std::set< iholder *, holder_comp > m_todel
Definition: CacheGlobalMemory.h:268