Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
Nektar::MemoryManager< DataType >::DeallocateSharedPtr< ObjectType, CustomDeallocator > Class Template Reference

Public Member Functions

 DeallocateSharedPtr (const CustomDeallocator &d)
 
void operator() (ObjectType *&m) const
 

Private Attributes

CustomDeallocator m_dealloc
 

Detailed Description

template<typename DataType>
template<typename ObjectType, typename CustomDeallocator>
class Nektar::MemoryManager< DataType >::DeallocateSharedPtr< ObjectType, CustomDeallocator >

Definition at line 106 of file NekMemoryManager.hpp.

Constructor & Destructor Documentation

template<typename DataType>
template<typename ObjectType , typename CustomDeallocator >
Nektar::MemoryManager< DataType >::DeallocateSharedPtr< ObjectType, CustomDeallocator >::DeallocateSharedPtr ( const CustomDeallocator &  d)
inlineexplicit

Definition at line 109 of file NekMemoryManager.hpp.

109  :
110  m_dealloc(d)
111  {
112  }

Member Function Documentation

template<typename DataType>
template<typename ObjectType , typename CustomDeallocator >
void Nektar::MemoryManager< DataType >::DeallocateSharedPtr< ObjectType, CustomDeallocator >::operator() ( ObjectType *&  m) const
inline

Definition at line 114 of file NekMemoryManager.hpp.

References Nektar::MemoryManager< DataType >::Deallocate(), and Nektar::MemoryManager< DataType >::DeallocateSharedPtr< ObjectType, CustomDeallocator >::m_dealloc.

115  {
116  m_dealloc();
118  }
static void Deallocate(DataType *&data)
Deallocate a pointer allocated by MemoryManager::Allocate.

Member Data Documentation

template<typename DataType>
template<typename ObjectType , typename CustomDeallocator >
CustomDeallocator Nektar::MemoryManager< DataType >::DeallocateSharedPtr< ObjectType, CustomDeallocator >::m_dealloc
private