xo-object2: + DArray gc hooks for AGCObject

This commit is contained in:
Roland Conybeare 2026-01-15 14:29:09 -05:00
commit f5b071f103
2 changed files with 46 additions and 1 deletions

View file

@ -100,7 +100,12 @@ namespace xo {
///@}
/** @defgroup darray-gcobject-methods **/
///@{
/** shallow memory consumption. Excludes child objects **/
AAllocator::size_type shallow_size() const noexcept;
/** return shallow copy of this array, using memory from @p mm **/
DArray * shallow_copy(obj<AAllocator> mm) const noexcept;
/** forward elements to @p gc to-space; replace originals with forarding pointers **/
AAllocator::size_type forward_children(obj<ACollector> gc) noexcept;
///@}
private: