46 const chunk& operator[](nidx
n)
const BY_CONST_FUNC(
operator[](
n));
48 const chunk& operator[](
const instance& it)
const BY_CONST_FUNC(
operator[](it));
55 const chunk* get(nidx
n)
const BY_CONST_FUNC(get(
n))
56 const chunk* get(
const instance& it)
const BY_CONST_FUNC(get(it))
57 const chunk* get(
const instance* it)
const BY_CONST_FUNC(get(it))
60 void* new1()
override;
78 ncnt len()
const override;
79 ncnt size()
const override;
87 void* _get(nidx
n)
override;
90 std::vector<chunk*> _chunks;
Abstract allocator interface for memory management
Definition allocator.hpp:21
Memory chunk for block-based allocation
Definition chunk.hpp:57
Collection of memory chunks for scalable allocation
Definition chunks.hpp:36
virtual nbool resize(ncnt new1)
nbool has(const instance &it) const override
Checks if any of the managed chunks contain the memory allocated for the given instance.
Base class for all managed instances in memlite system
Definition instance.hpp:41
Weak reference smart pointer with type-safe access
Definition tweak.hpp:16
#define BY_SIDE_FUNC(...)
Side function macros for safe pointer operations
Definition sideFunc.hpp:24