Changeset 1946


Ignore:
Timestamp:
Feb 29, 2012, 8:24:15 PM (7 years ago)
Author:
ksherdy
Message:

Updated comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/allocator.hpp

    r1938 r1946  
    1 /*
    2  * allocator.hpp - Memory allocation.
    3  * Created on: 18-December-2011
    4  * Author: Ken Herdy
    5  *
    6  *
    7  */
    8 
    9 
    101#ifndef ALLOCATOR_HPP_
    112#define ALLOCATOR_HPP_
     3/*=============================================================================
     4  allocator.hpp - Coterminal memory pool allocators.
     5  Created on: 18-December-2011
     6  Author: Ken Herdy
     7=============================================================================*/
    128
    139#include "debug.hpp"
     
    2016using namespace std;
    2117
    22 /* Base Class */
     18///////////////////////////////////////////////////////////////////////////////
     19// Base Class
     20///////////////////////////////////////////////////////////////////////////////
    2321class pool_allocator {
    2422public:
     
    3230};
    3331
    34 /* Fast Memory Pool Allocator - Trade memory for speed.
    35  *
    36  * Allocates BASE_SIZE bytes on the stack. Analogous to BUFFER_SIZE in the Pablo template.
    37  * Allocates additional bytes on the heap.
    38  * Coterminal deallocation.
    39  * Allocation returns void * pointer to memory block, returns number of bytes allocated.
    40  *
    41  */
     32///////////////////////////////////////////////////////////////////////////////
     33// Fast Memory Pool Allocator - Trade memory for speed.
     34//
     35// Allocates BASE_SIZE initial bytes on the stack.
     36// Additional memory allocated on the heap. Coterminal deallocation.
     37// Allocation returns void * pointer to memory block,
     38// Returns number of bytes allocated.
     39//
     40///////////////////////////////////////////////////////////////////////////////
    4241template<uint32_t BASE_SIZE>
    4342class fast_pool_allocator : public pool_allocator {
     
    174173};
    175174
    176 #endif
     175#endif // ALLOCATOR_HPP_
Note: See TracChangeset for help on using the changeset viewer.