xo-object2: tidy IGCObject_DList

This commit is contained in:
Roland Conybeare 2026-01-15 00:32:50 -05:00
commit 503fd41c78
12 changed files with 159 additions and 89 deletions

View file

@ -19,6 +19,7 @@ namespace xo {
using size_type = std::size_t;
using AGCObject = xo::mm::AGCObject;
using AAllocator = xo::mm::AAllocator;
using ACollector = xo::mm::ACollector;
using ppindentinfo = xo::print::ppindentinfo;
public:
@ -51,6 +52,12 @@ namespace xo {
/** pretty-printing driver; combine layout+printing **/
bool pretty(const ppindentinfo & ppii) const;
// GCObject facet
size_type shallow_size() const noexcept;
DList * shallow_copy(obj<AAllocator> mm) const noexcept;
size_type forward_children(obj<ACollector> gc) noexcept;
/** first member of list **/
obj<AGCObject> head_;
/** remainder of list **/