The C++ framework for developing highly scalable, high performance servers on Windows platforms.

IAllocateFixedSizedMemory Class Reference
[Interfaces]

Inheritance diagram for IAllocateFixedSizedMemory:

List of all members.


Detailed Description

Provides an interface that can allocate fixed sized blocks of memory.


Public Member Functions

virtual size_t GetAllocationSize () const =0
 Returns the size of the allocated blocks.
virtual void * Allocate ()=0
 Allocate a block of memory.
virtual void Free (void *pMem)=0
 Release a block of memory back to the allocator for reuse.
virtual ~IAllocateFixedSizedMemory ()


Constructor & Destructor Documentation

virtual ~IAllocateFixedSizedMemory (  )  [virtual]


Member Function Documentation

virtual size_t GetAllocationSize (  )  const [pure virtual]

Returns the size of the allocated blocks.

Implemented in CSimpleFixedSizedMemoryAllocator.

virtual void* Allocate (  )  [pure virtual]

Allocate a block of memory.

Implemented in CSimpleFixedSizedMemoryAllocator.

virtual void Free ( void *  pMem  )  [pure virtual]

Release a block of memory back to the allocator for reuse.

Implemented in CSimpleFixedSizedMemoryAllocator.


Generated on Sun Sep 12 19:08:28 2021 for The Server Framework - v7.4 by doxygen 1.5.3