Generated on Tue Sep 25 2012 20:53:34 for Gecode by doxygen 1.7.5
Gecode::Support::BlockAllocator Class Reference

Manage memory organized into block lists (allocator) More...

#include <block-allocator.hpp>

List of all members.

Classes

class  Block
 One block of memory. More...

Public Member Functions

 BlockAllocator (A &a)
 Initialize.
 ~BlockAllocator (void)
 Free all allocated blocks.
A & allocator (void)
 Return allocator used.
T * operator() (void)
 Return memory of size required by T.
size_t size (void) const
 Return size of memory required by allocator.

Detailed Description

Manage memory organized into block lists (allocator)

The allocation policy is to free all memory allocated when the block allocator is deleted.


Constructor & Destructor Documentation

Gecode::Support::BlockAllocator::BlockAllocator ( A &  a) [inline]

Initialize.

Definition at line 102 of file block-allocator.hpp.

Gecode::Support::BlockAllocator::~BlockAllocator ( void  ) [inline]

Free all allocated blocks.

Definition at line 111 of file block-allocator.hpp.


Member Function Documentation

A & Gecode::Support::BlockAllocator::allocator ( void  ) [inline]

Return allocator used.

Definition at line 120 of file block-allocator.hpp.

T * Gecode::Support::BlockAllocator::operator() ( void  ) [inline]

Return memory of size required by T.

Definition at line 126 of file block-allocator.hpp.

size_t Gecode::Support::BlockAllocator::size ( void  ) const [inline]

Return size of memory required by allocator.

Definition at line 145 of file block-allocator.hpp.


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