Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Interface «api::Heap»

Heap memory interface.

public: virtual ~Heap();

Destructor.

public: virtual void* alloc(size_t size, void* ptr);

Allocates memory.

Parameters:
size — required memory size in byte.
ptr — NULL value becomes to allocate memory, and other given values are simply returned as memory address.

Returns:
pointer to allocated memory or NULL.

public: virtual void free(void* ptr);

Frees an allocated memory.

Parameters:
ptr — pointer to allocated memory.

public: virtual bool isConstructed() const;

Tests if this object has been constructed.

Returns:
true if object has been constructed successfully.

public: static bool isObject(const Type* obj);

Tests if given object has been constructed object.

Parameters:
obj — pointer to object.

Returns:
true if object has been constructed successfully.

Back to class list