You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.8 KiB
64 lines
2.8 KiB
#ifndef _FAST_HEAP_HPP_
|
|
#define _FAST_HEAP_HPP_
|
|
// Ruler
|
|
// 1 2 3 4 5 6 7 8
|
|
//345678901234567890123456789012345678901234567890123456789012345678901234567890
|
|
|
|
/********************************************************************/
|
|
/* */
|
|
/* The standard layout. */
|
|
/* */
|
|
/* The standard layout for 'hpp' files for this code is as */
|
|
/* follows: */
|
|
/* */
|
|
/* 1. Include files. */
|
|
/* 2. Constants exported from the class. */
|
|
/* 3. Data structures exported from the class. */
|
|
/* 4. Forward references to other data structures. */
|
|
/* 5. Class specifications (including inline functions). */
|
|
/* 6. Additional large inline functions. */
|
|
/* */
|
|
/* Any portion that is not required is simply omitted. */
|
|
/* */
|
|
/********************************************************************/
|
|
|
|
#include "Rockall.hpp"
|
|
|
|
/********************************************************************/
|
|
/* */
|
|
/* A fast heap. */
|
|
/* */
|
|
/* A fast heap tries to provide very good performance even */
|
|
/* if that comes at a significant cost in terms of additional */
|
|
/* memory usage. */
|
|
/* */
|
|
/********************************************************************/
|
|
|
|
class ROCKALL_DLL_LINKAGE FAST_HEAP : public ROCKALL
|
|
{
|
|
public:
|
|
//
|
|
// Public functions.
|
|
//
|
|
FAST_HEAP
|
|
(
|
|
int MaxFreeSpace = 4194304,
|
|
bool Recycle = true,
|
|
bool SingleImage = false,
|
|
bool ThreadSafe = true
|
|
);
|
|
|
|
~FAST_HEAP( void );
|
|
|
|
private:
|
|
//
|
|
// Disabled operations.
|
|
//
|
|
// All copy constructors and class assignment
|
|
// operations are disabled.
|
|
//
|
|
FAST_HEAP( const FAST_HEAP & Copy );
|
|
|
|
void operator=( const FAST_HEAP & Copy );
|
|
};
|
|
#endif
|