ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
DataVectorWithAlloc< DV, ALLOC >::HeapDeleter Class Reference

Internal helper to delete vector elements. More...

Inheritance diagram for DataVectorWithAlloc< DV, ALLOC >::HeapDeleter:
Collaboration diagram for DataVectorWithAlloc< DV, ALLOC >::HeapDeleter:

Public Types

using Base = typename DV::Deleter
 
using value_type = typename Base::value_type
 
using PtrVector = typename Base::PtrVector
 

Public Member Functions

 HeapDeleter (elt_allocator_type &&heap)
 
elt_allocator_typeheap () noexcept
 
virtual void doDelete (value_type p) override
 
virtual void doDelete (typename PtrVector::iterator first, typename PtrVector::iterator last) override
 

Private Attributes

elt_allocator_type m_heap
 

Detailed Description

template<class DV, class ALLOC>
class DataVectorWithAlloc< DV, ALLOC >::HeapDeleter

Internal helper to delete vector elements.

Definition at line 758 of file DataVectorWithAlloc.h.

Member Typedef Documentation

◆ Base

template<class DV , class ALLOC >
using DataVectorWithAlloc< DV, ALLOC >::HeapDeleter::Base = typename DV::Deleter

Definition at line 762 of file DataVectorWithAlloc.h.

◆ PtrVector

template<class DV , class ALLOC >
using DataVectorWithAlloc< DV, ALLOC >::HeapDeleter::PtrVector = typename Base::PtrVector

Definition at line 764 of file DataVectorWithAlloc.h.

◆ value_type

template<class DV , class ALLOC >
using DataVectorWithAlloc< DV, ALLOC >::HeapDeleter::value_type = typename Base::value_type

Definition at line 763 of file DataVectorWithAlloc.h.

Constructor & Destructor Documentation

◆ HeapDeleter()

template<class DV , class ALLOC >
DataVectorWithAlloc< DV, ALLOC >::HeapDeleter::HeapDeleter ( elt_allocator_type &&  heap)

Member Function Documentation

◆ doDelete() [1/2]

template<class DV , class ALLOC >
virtual void DataVectorWithAlloc< DV, ALLOC >::HeapDeleter::doDelete ( typename PtrVector::iterator  first,
typename PtrVector::iterator  last 
)
overridevirtual

◆ doDelete() [2/2]

template<class DV , class ALLOC >
virtual void DataVectorWithAlloc< DV, ALLOC >::HeapDeleter::doDelete ( value_type  p)
overridevirtual

◆ heap()

template<class DV , class ALLOC >
elt_allocator_type& DataVectorWithAlloc< DV, ALLOC >::HeapDeleter::heap ( )
noexcept

Member Data Documentation

◆ m_heap

template<class DV , class ALLOC >
elt_allocator_type DataVectorWithAlloc< DV, ALLOC >::HeapDeleter::m_heap
private

Definition at line 773 of file DataVectorWithAlloc.h.


The documentation for this class was generated from the following file: