by::watcher Class Reference

Memory watcher for tracking instance lifecycle and allocation. More...

#include <watcher.hpp>

Inheritance diagram for by::watcher:
by::chunk by::allocator by::memoryHaver

Public Member Functions

watchCelloperator[] (nidx n)
 
const watchCelloperator[] (nidx n) const BY_CONST_FUNC(operator[](n))
 
watchCelloperator[] (id id)
 
const watchCelloperator[] (id id) const BY_CONST_FUNC(operator[](id))
 
watchCellget (nidx n)
 
watchCellget (id newId)
 
const watchCellget (nidx n) const BY_CONST_FUNC(get(n)) const watchCell *get(id new Id) const BY_CONST_FUNC(get(newId)) void *new 1() override
 
nbool del (void *used, ncnt sz) override
 
- Public Member Functions inherited from by::chunk
 chunk (ncnt blockSz=1, ncnt sz=MIN_SZ)
 
void * operator[] (nidx n)
 
const void * operator[] (nidx n) const BY_CONST_FUNC(operator[](n))
 
void * get (nidx n)
 
void * new1 () override
 
ncnt len () const override
 
ncnt size () const override
 
nbool rel () override
 
nbool has (const instance &it) const override
 
- Public Member Functions inherited from by::allocator
 allocator (ncnt blksize=1)
 
ncnt getBlkSize () const
 
- Public Member Functions inherited from by::memoryHaver
nbool has (const instance *it) const BY_SIDE_FUNC(has)
 
nbool isFull () const
 
nbool isCapable () const
 

Protected Member Functions

id _genId (void *pt) const
 
nidx _getIdx (void *it) const
 
- Protected Member Functions inherited from by::chunk
void * _get (nidx n) override
 
nuchar * _getHeap ()
 
const nuchar * _getHeap () const BY_CONST_FUNC(_getHeap()) nbool _resize(ncnt new Sz)
 

Friends

class instancer
 
class bindTag
 

Additional Inherited Members

- Static Public Attributes inherited from by::chunk
static constexpr ncnt MIN_SZ = 20
 

Detailed Description

Memory watcher for tracking instance lifecycle and allocation.

Monitors memory allocation and deallocation, providing watch cells for tracking instance states and managing memory lifecycle.

Member Function Documentation

◆ del()

nbool by::watcher::del ( void *  used,
ncnt  sz 
)
overridevirtual

Reimplemented from by::chunk.


The documentation for this class was generated from the following file: