CrystalSpace

Public API Reference

CS::Memory::AllocatorAlign< A > Class Template Reference

This class implements an allocator policy which aligns the first element on given byte boundary. More...

#include <csutil/allocator.h>

List of all members.

Static Public Member Functions

static void * Alloc (size_t size)
 Allocate a raw block of given size.
static void Free (void *p)
 Free a block.

Detailed Description

template<size_t A = 1>
class CS::Memory::AllocatorAlign< A >

This class implements an allocator policy which aligns the first element on given byte boundary.

It has a per-block overhead of `sizeof(void*)+alignment' bytes.

Definition at line 434 of file allocator.h.


Member Function Documentation

template<size_t A = 1>
static void* CS::Memory::AllocatorAlign< A >::Alloc ( size_t  size  )  [inline, static]

Allocate a raw block of given size.

Definition at line 440 of file allocator.h.

template<size_t A = 1>
static void CS::Memory::AllocatorAlign< A >::Free ( void *  p  )  [inline, static]

Free a block.

Remarks:
Does not check that the block pointer is valid.

Definition at line 449 of file allocator.h.


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

Generated for Crystal Space 2.1 by doxygen 1.6.1