refactor: rename GCObject.shallow_copy -> shallow_move

resolve conflict since relying on move constructor in std_copy_for
This commit is contained in:
Roland Conybeare 2026-04-04 15:00:53 -04:00
commit 0cb20c3789
28 changed files with 42 additions and 42 deletions

View file

@ -148,7 +148,7 @@ namespace xo {
/** 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;
DArray * shallow_move(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;
///@}

View file

@ -38,7 +38,7 @@ namespace xo {
// GCObject facet
std::size_t shallow_size() const noexcept;
DBoolean * shallow_copy(obj<AAllocator> mm) const noexcept;
DBoolean * shallow_move(obj<AAllocator> mm) const noexcept;
std::size_t forward_children(obj<ACollector> gc) noexcept;
private:

View file

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

View file

@ -35,7 +35,7 @@ namespace xo {
// GCObject facet
std::size_t shallow_size() const noexcept;
DFloat * shallow_copy(obj<AAllocator> mm) const noexcept;
DFloat * shallow_move(obj<AAllocator> mm) const noexcept;
std::size_t forward_children(obj<ACollector> gc) noexcept;
private:

View file

@ -40,7 +40,7 @@ namespace xo {
// GCObject facet
std::size_t shallow_size() const noexcept;
DInteger * shallow_copy(obj<AAllocator> mm) const noexcept;
DInteger * shallow_move(obj<AAllocator> mm) const noexcept;
std::size_t forward_children(obj<ACollector> gc) noexcept;
private:

View file

@ -70,7 +70,7 @@ namespace xo {
/** @defgroup xo-scm-list-gcobject-facet gcobject facet **/
///@{
size_type shallow_size() const noexcept;
DList * shallow_copy(obj<AAllocator> mm) noexcept;
DList * shallow_move(obj<AAllocator> mm) noexcept;
size_type forward_children(obj<ACollector> gc) noexcept;
///@}

View file

@ -50,7 +50,7 @@ namespace xo {
///@{
std::size_t shallow_size() const noexcept;
DRuntimeError * shallow_copy(obj<AAllocator> mm) const noexcept;
DRuntimeError * shallow_move(obj<AAllocator> mm) const noexcept;
std::size_t forward_children(obj<ACollector> gc) noexcept;
///@}

View file

@ -52,8 +52,8 @@ namespace xo {
static size_type shallow_size(const DArray & self) noexcept;
// non-const methods
/** copy instance using allocator **/
static Opaque shallow_copy(DArray & self, obj<AAllocator> mm) noexcept;
/** move instance using allocator **/
static Opaque shallow_move(DArray & self, obj<AAllocator> mm) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DArray & self, obj<ACollector> gc) noexcept;
///@}

View file

@ -52,8 +52,8 @@ namespace xo {
static size_type shallow_size(const DBoolean & self) noexcept;
// non-const methods
/** copy instance using allocator **/
static Opaque shallow_copy(DBoolean & self, obj<AAllocator> mm) noexcept;
/** move instance using allocator **/
static Opaque shallow_move(DBoolean & self, obj<AAllocator> mm) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DBoolean & self, obj<ACollector> gc) noexcept;
///@}

View file

@ -52,8 +52,8 @@ namespace xo {
static size_type shallow_size(const DDictionary & self) noexcept;
// non-const methods
/** copy instance using allocator **/
static Opaque shallow_copy(DDictionary & self, obj<AAllocator> mm) noexcept;
/** move instance using allocator **/
static Opaque shallow_move(DDictionary & self, obj<AAllocator> mm) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DDictionary & self, obj<ACollector> gc) noexcept;
///@}

View file

@ -52,8 +52,8 @@ namespace xo {
static size_type shallow_size(const DRuntimeError & self) noexcept;
// non-const methods
/** copy instance using allocator **/
static Opaque shallow_copy(DRuntimeError & self, obj<AAllocator> mm) noexcept;
/** move instance using allocator **/
static Opaque shallow_move(DRuntimeError & self, obj<AAllocator> mm) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DRuntimeError & self, obj<ACollector> gc) noexcept;
///@}

View file

@ -52,8 +52,8 @@ namespace xo {
static size_type shallow_size(const DList & self) noexcept;
// non-const methods
/** copy instance using allocator **/
static Opaque shallow_copy(DList & self, obj<AAllocator> mm) noexcept;
/** move instance using allocator **/
static Opaque shallow_move(DList & self, obj<AAllocator> mm) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DList & self, obj<ACollector> gc) noexcept;
///@}

View file

@ -53,8 +53,8 @@ namespace xo {
static size_type shallow_size(const DFloat & self) noexcept;
// non-const methods
/** copy instance using allocator **/
static Opaque shallow_copy(DFloat & self, obj<AAllocator> mm) noexcept;
/** move instance using allocator **/
static Opaque shallow_move(DFloat & self, obj<AAllocator> mm) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DFloat & self, obj<ACollector> gc) noexcept;
///@}

View file

@ -52,8 +52,8 @@ namespace xo {
static size_type shallow_size(const DInteger & self) noexcept;
// non-const methods
/** copy instance using allocator **/
static Opaque shallow_copy(DInteger & self, obj<AAllocator> mm) noexcept;
/** move instance using allocator **/
static Opaque shallow_move(DInteger & self, obj<AAllocator> mm) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DInteger & self, obj<ACollector> gc) noexcept;
///@}