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

Abstract allocator interface for memory management 더 자세히 ...

#include <allocator.hpp>

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

Public 멤버 함수

 allocator (ncnt blksize=1)
 
virtual void * new1 ()=0
 
virtual nbool del (void *used, ncnt sz)=0
 
ncnt getBlkSize () const
 
- by::memoryHaver(으)로부터 상속된 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
 

추가로 상속된 멤버들

- by::memoryHaver(으)로부터 상속된 Protected 멤버 함수
virtual void * _get (nidx n)=0
 Internal method to get a pointer to memory at a specific index.
 

상세한 설명

Abstract allocator interface for memory management

Inherits from memoryHaver, so can measure state and size of managed memory. Additionally can allocate and deallocate memory.

Remarks
void* and byte-only perspective Following memlite's concept of viewing all memory only as void* and bytes, new() and del() parameters only provide void*.

naming conventions

Allocation uses new1() (meaning "new one"), deallocation uses del(). This naming is frequently used not only in memlite but throughout the byeol project.

멤버 함수 문서화

◆ del()

virtual nbool by::allocator::del ( void * used,
ncnt sz )
pure virtual

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


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