Generated on Thu Apr 5 2018 19:44:19 for Gecode by doxygen 1.8.13
Gecode::Kernel::MemoryManager Class Reference

Manage memory for space. More...

#include <manager.hpp>

Public Member Functions

 MemoryManager (SharedMemory &sm)
 Constructor initialization. More...
 
 MemoryManager (SharedMemory &sm, MemoryManager &mm, size_t s_sub)
 Constructor during cloning mm with shared memory sm and for a memory area for subscriptions of size s_sub. More...
 
void release (SharedMemory &sm)
 Release all allocated heap chunks. More...
 
void * alloc (SharedMemory &sm, size_t s)
 Allocate memory of size s. More...
 
void * subscriptions (void) const
 Get the memory area for subscriptions. More...
 
template<size_t s>
void * fl_alloc (SharedMemory &sm)
 Allocate free list element of size s. More...
 
template<size_t >
void fl_dispose (FreeList *f, FreeList *l)
 Release all free list elements of size s between f and l (inclusive) More...
 
void reuse (void *p, size_t s)
 Store for reusal, if of sufficient size for free list. More...
 

Detailed Description

Manage memory for space.

Definition at line 124 of file manager.hpp.

Constructor & Destructor Documentation

◆ MemoryManager() [1/2]

Gecode::Kernel::MemoryManager::MemoryManager ( SharedMemory sm)
inline

Constructor initialization.

Definition at line 340 of file manager.hpp.

◆ MemoryManager() [2/2]

Gecode::Kernel::MemoryManager::MemoryManager ( SharedMemory sm,
MemoryManager mm,
size_t  s_sub 
)
inline

Constructor during cloning mm with shared memory sm and for a memory area for subscriptions of size s_sub.

Definition at line 349 of file manager.hpp.

Member Function Documentation

◆ release()

void Gecode::Kernel::MemoryManager::release ( SharedMemory sm)
inline

Release all allocated heap chunks.

Definition at line 367 of file manager.hpp.

◆ alloc()

void * Gecode::Kernel::MemoryManager::alloc ( SharedMemory sm,
size_t  s 
)
inline

Allocate memory of size s.

Definition at line 290 of file manager.hpp.

◆ subscriptions()

void * Gecode::Kernel::MemoryManager::subscriptions ( void  ) const
inline

Get the memory area for subscriptions.

Definition at line 302 of file manager.hpp.

◆ fl_alloc()

template<size_t s>
void * Gecode::Kernel::MemoryManager::fl_alloc ( SharedMemory sm)
inline

Allocate free list element of size s.

Definition at line 415 of file manager.hpp.

◆ fl_dispose()

template<size_t s>
void Gecode::Kernel::MemoryManager::fl_dispose ( FreeList f,
FreeList l 
)
inline

Release all free list elements of size s between f and l (inclusive)

Definition at line 428 of file manager.hpp.

◆ reuse()

void Gecode::Kernel::MemoryManager::reuse ( void *  p,
size_t  s 
)
inline

Store for reusal, if of sufficient size for free list.

Definition at line 383 of file manager.hpp.


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