Generated on Tue May 22 09:41:38 2018 for Gecode by doxygen 1.6.3

Gecode::Kernel::MemoryManager Class Reference

Manage memory for space. More...

#include <manager.hpp>

List of all members.

Public Member Functions

 MemoryManager (SharedMemory &sm)
 Constructor initialization.
 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.
void release (SharedMemory &sm)
 Release all allocated heap chunks.
void * alloc (SharedMemory &sm, size_t s)
 Allocate memory of size s.
void * subscriptions (void) const
 Get the memory area for subscriptions.
template<size_t s>
void * fl_alloc (SharedMemory &sm)
 Allocate free list element of size s.
template<size_t >
void fl_dispose (FreeList *f, FreeList *l)
 Release all free list elements of size s between f and l (inclusive).
void reuse (void *p, size_t s)
 Store for reusal, if of sufficient size for free list.

Detailed Description

Manage memory for space.

Definition at line 120 of file manager.hpp.


Constructor & Destructor Documentation

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

Constructor initialization.

Definition at line 336 of file manager.hpp.

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 345 of file manager.hpp.


Member Function Documentation

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

Release all allocated heap chunks.

Definition at line 363 of file manager.hpp.

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

Allocate memory of size s.

Definition at line 286 of file manager.hpp.

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

Get the memory area for subscriptions.

Definition at line 298 of file manager.hpp.

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

Allocate free list element of size s.

Definition at line 411 of file manager.hpp.

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 424 of file manager.hpp.

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

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

Definition at line 379 of file manager.hpp.


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