In file libs/cs3d/common/texmem.h:

class FixedTextureMemoryManager : public TextureMemoryManager

This class implements a TextureMemoryManager based on a global linear bloc of memory.

Inheritance:


Public Methods

virtual textMemSpace allocSpaceMem(size_t blocksize)
allocate a chunck of memory.
FixedTextureMemoryManager(size_t _size)
The constructor
virtual void freeSpaceMem(textMemSpace entry)
frees a previously allocated bloc of memory.
virtual int getFragmentationState(void)
return information about the fragmentation of the memory.
virtual bool hasFreeSpace(size_t blocksize)
return true if enough space available.

Protected Classes

struct chunck
A structure for the linked list of chuncks.
TextureMemoryEntry self
The offset and size of this chunck.
chunck* prev
The previous and the next chunk (NULL if none).

Protected Fields

chunck* allocatedSpace
Linked list of allocated chuncks.
chunck* freeSpace
Linked list of free chuncks.
size_t size
Total size of the memory

Protected

struct chunck
A structure for the linked list of chuncks.
TextureMemoryEntry self
The offset and size of this chunck.
chunck* prev
The previous and the next chunk (NULL if none).

Inherited from TextureMemoryManager:


Documentation

This class implements a TextureMemoryManager based on a global linear bloc of memory.
struct chunck
A structure for the linked list of chuncks.

TextureMemoryEntry self
The offset and size of this chunck.

chunck* prev
The previous and the next chunk (NULL if none).

size_t size
Total size of the memory

chunck* freeSpace
Linked list of free chuncks.

chunck* allocatedSpace
Linked list of allocated chuncks.

FixedTextureMemoryManager(size_t _size)
The constructor

virtual bool hasFreeSpace(size_t blocksize)
return true if enough space available.

virtual textMemSpace allocSpaceMem(size_t blocksize)
allocate a chunck of memory.

virtual void freeSpaceMem(textMemSpace entry)
frees a previously allocated bloc of memory.

virtual int getFragmentationState(void)
return information about the fragmentation of the memory.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de