로딩중...
검색중...
일치하는것 없음
by::memoryHaver 클래스 참조abstract

Abstract interface for objects that own memory 더 자세히 ...

#include <memoryHaver.hpp>

by::memoryHaver에 대한 상속 다이어그램 :
by::allocator by::pool by::chunk by::chunks by::watcher

Public 멤버 함수

virtual nbool has (const instance &it) const =0
 Checks if this memory manager "owns" or contains the given instance.
 
nbool has (const instance *it) const BY_SIDE_FUNC(has)
 
virtual ncnt len () const =0
 
virtual ncnt size () const =0
 
virtual nbool rel ()=0
 
nbool isFull () const
 
nbool isCapable () const
 

Protected 멤버 함수

virtual void * _get (nidx n)=0
 Internal method to get a pointer to memory at a specific index.
 

상세한 설명

Abstract interface for objects that own memory

Base interface for classes that directly or indirectly own memory in the memory pool and can READ that memory. Defines interfaces for querying memory size and state.

Indirect ownership?

"Indirect ownership" means the object doesn't directly allocate and use memory, but internal member variables handle it. If memory allocation must be done through internal members, the class should only inherit memoryHaver. If allocation is also possible, inherit allocator.

len and size

Allocatable memory size is expressed as size, while allocated memory is expressed as len. Control is based solely on void* and byte units.

Remarks
memoryHaver derivatives manage different memory sizes Note that memoryHaver derived classes each manage different sizes of memory.

멤버 함수 문서화

◆ _get()

virtual void * by::memoryHaver::_get ( nidx n)
protectedpure virtual

Internal method to get a pointer to memory at a specific index.

매개변수
nThe index of the memory block to retrieve.
반환값
A void pointer to the memory block.

by::chunk, by::pool에서 구현되었습니다.

◆ has()

virtual nbool by::memoryHaver::has ( const instance & it) const
pure virtual

Checks if this memory manager "owns" or contains the given instance.

매개변수
itThe instance to check for.
반환값
true if the instance is managed by this memoryHaver, false otherwise.

by::chunk, by::chunks에서 구현되었습니다.

◆ rel()

virtual nbool by::memoryHaver::rel ( )
pure virtual

by::pool에서 구현되었습니다.


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: