Abstract Memory manager.  
 More...
#include "abstract_memory_manager.h"
Abstract Memory manager. 
Present a thread safe pool of Managed memory 
Definition at line 41 of file abstract_memory_manager.h.
◆ AbstractMemoryManager()
  
  | 
        
          | hh::AbstractMemoryManager::AbstractMemoryManager | ( | size_t const & | capacity | ) |  |  | inlineexplicit | 
 
Only used constructor. 
- Parameters
- 
  
    | capacity | Memory Manager capacity, number of elements available, set to 1 if 0 |  
 
Definition at line 53 of file abstract_memory_manager.h.
 
 
◆ ~AbstractMemoryManager()
  
  | 
        
          | virtual hh::AbstractMemoryManager::~AbstractMemoryManager | ( |  | ) |  |  | virtualdefault | 
 
 
◆ capacity()
  
  | 
        
          | size_t hh::AbstractMemoryManager::capacity | ( |  | ) | const |  | inline | 
 
 
◆ copy()
◆ currentSize()
  
  | 
        
          | size_t hh::AbstractMemoryManager::currentSize | ( |  | ) |  |  | inline | 
 
Return the current size of the inside pool. 
Lock the api user mutex before getting the current size of the inside pool 
- Returns
- The current number of available data 
Definition at line 67 of file abstract_memory_manager.h.
 
 
◆ deviceId() [1/2]
  
  | 
        
          | int hh::AbstractMemoryManager::deviceId | ( |  | ) | const |  | inline | 
 
 
◆ deviceId() [2/2]
  
  | 
        
          | void hh::AbstractMemoryManager::deviceId | ( | int | deviceId | ) |  |  | inline | 
 
 
◆ getManagedMemory()
  
  | 
        
          | virtual std::shared_ptr< ManagedMemory > hh::AbstractMemoryManager::getManagedMemory | ( |  | ) |  |  | pure virtual | 
 
 
◆ initialize()
  
  | 
        
          | virtual void hh::AbstractMemoryManager::initialize | ( |  | ) |  |  | pure virtual | 
 
 
◆ initialized()
  
  | 
        
          | void hh::AbstractMemoryManager::initialized | ( |  | ) |  |  | inlineprotected | 
 
 
◆ isInitialized()
  
  | 
        
          | bool hh::AbstractMemoryManager::isInitialized | ( |  | ) | const |  | inlineprotected | 
 
Initialized flag accessor. 
- Returns
- True is the memory manager has been initialized, else False 
Definition at line 123 of file abstract_memory_manager.h.
 
 
◆ managedType()
  
  | 
        
          | virtual std::string hh::AbstractMemoryManager::managedType | ( |  | ) | const |  | pure virtual | 
 
 
◆ memoryManagerMutex()
  
  | 
        
          | std::mutex & hh::AbstractMemoryManager::memoryManagerMutex | ( |  | ) |  |  | inlineprotected | 
 
 
◆ pool()
◆ profiler() [1/2]
  
  | 
        
          | std::shared_ptr< NvtxProfiler > const  & hh::AbstractMemoryManager::profiler | ( |  | ) | const |  | inlineprotected | 
 
 
◆ profiler() [2/2]
  
  | 
        
          | void hh::AbstractMemoryManager::profiler | ( | const std::shared_ptr< NvtxProfiler > & | profiler | ) |  |  | inline | 
 
 
◆ recycleMemory()
  
  | 
        
          | virtual void hh::AbstractMemoryManager::recycleMemory | ( | std::shared_ptr< ManagedMemory > const & | managedMemory | ) |  |  | pure virtual | 
 
 
◆ deviceId_
  
  | 
        
          | int hh::AbstractMemoryManager::deviceId_ = 0 |  | private | 
 
 
◆ initialized_
  
  | 
        
          | bool hh::AbstractMemoryManager::initialized_ = false |  | private | 
 
 
◆ memoryManagerMutex_
  
  | 
        
          | std::mutex hh::AbstractMemoryManager::memoryManagerMutex_ = {} |  | protected | 
 
 
◆ pool_
◆ profiler_
  
  | 
        
          | std::shared_ptr<NvtxProfiler> hh::AbstractMemoryManager::profiler_ = nullptr |  | private |