From a08fe61a4561b1343b38c3b9f41ccb89481ae731 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 4 Apr 2026 16:33:35 -0400 Subject: [PATCH] refactor: rename shallow_copy -> shallow_move + streamline Use RCollector.std_copy_for where appropriate --- include/xo/type/DArrayType.hpp | 2 +- include/xo/type/DAtomicType.hpp | 2 +- include/xo/type/DFunctionType.hpp | 2 +- include/xo/type/DListType.hpp | 2 +- include/xo/type/array/IGCObject_DArrayType.hpp | 2 +- include/xo/type/atomic/IGCObject_DAtomicType.hpp | 2 +- include/xo/type/function/IGCObject_DFunctionType.hpp | 2 +- include/xo/type/list/IGCObject_DListType.hpp | 2 +- include/xo/type/typevar/DTypeVarRef.hpp | 2 +- include/xo/type/typevar/IGCObject_DTypeVarRef.hpp | 2 +- src/type/DArrayType.cpp | 4 ++-- src/type/DAtomicType.cpp | 4 ++-- src/type/DFunctionType.cpp | 4 ++-- src/type/DListType.cpp | 4 ++-- src/type/DTypeVarRef.cpp | 4 ++-- src/type/IGCObject_DArrayType.cpp | 4 ++-- src/type/IGCObject_DAtomicType.cpp | 4 ++-- src/type/IGCObject_DFunctionType.cpp | 4 ++-- src/type/IGCObject_DListType.cpp | 4 ++-- src/type/IGCObject_DTypeVarRef.cpp | 4 ++-- 20 files changed, 30 insertions(+), 30 deletions(-) diff --git a/include/xo/type/DArrayType.hpp b/include/xo/type/DArrayType.hpp index a259464..db827e8 100644 --- a/include/xo/type/DArrayType.hpp +++ b/include/xo/type/DArrayType.hpp @@ -42,7 +42,7 @@ namespace xo { /** @defgroup xo-scm-arraytype-gcobject-facet **/ ///@{ std::size_t shallow_size() const noexcept; - DArrayType * shallow_move(obj mm) noexcept; + DArrayType * shallow_move(obj gc) noexcept; std::size_t forward_children(obj gc) noexcept; ///@} diff --git a/include/xo/type/DAtomicType.hpp b/include/xo/type/DAtomicType.hpp index 7661955..b9daf76 100644 --- a/include/xo/type/DAtomicType.hpp +++ b/include/xo/type/DAtomicType.hpp @@ -43,7 +43,7 @@ namespace xo { /** @defgroup xo-scm-atomictype-gcobject-facet **/ ///@{ std::size_t shallow_size() const noexcept; - DAtomicType * shallow_move(obj mm) noexcept; + DAtomicType * shallow_move(obj gc) noexcept; std::size_t forward_children(obj gc) noexcept; ///@} diff --git a/include/xo/type/DFunctionType.hpp b/include/xo/type/DFunctionType.hpp index 328c93b..5fbb93a 100644 --- a/include/xo/type/DFunctionType.hpp +++ b/include/xo/type/DFunctionType.hpp @@ -64,7 +64,7 @@ namespace xo { /** @defgroup xo-scm-arraytype-gcobject-facet **/ ///@{ std::size_t shallow_size() const noexcept; - DFunctionType * shallow_move(obj mm) noexcept; + DFunctionType * shallow_move(obj gc) noexcept; std::size_t forward_children(obj gc) noexcept; ///@} diff --git a/include/xo/type/DListType.hpp b/include/xo/type/DListType.hpp index 2dfedb2..b2fd196 100644 --- a/include/xo/type/DListType.hpp +++ b/include/xo/type/DListType.hpp @@ -50,7 +50,7 @@ namespace xo { /** @defgroup xo-scm-listtype-gcobject-facet **/ ///@{ std::size_t shallow_size() const noexcept; - DListType * shallow_move(obj mm) noexcept; + DListType * shallow_move(obj gc) noexcept; std::size_t forward_children(obj gc) noexcept; ///@} diff --git a/include/xo/type/array/IGCObject_DArrayType.hpp b/include/xo/type/array/IGCObject_DArrayType.hpp index 8c1bfee..55c58b5 100644 --- a/include/xo/type/array/IGCObject_DArrayType.hpp +++ b/include/xo/type/array/IGCObject_DArrayType.hpp @@ -53,7 +53,7 @@ namespace xo { // non-const methods /** move instance using allocator **/ - static Opaque shallow_move(DArrayType & self, obj mm) noexcept; + static Opaque shallow_move(DArrayType & self, obj gc) noexcept; /** during GC: forward immdiate children **/ static size_type forward_children(DArrayType & self, obj gc) noexcept; ///@} diff --git a/include/xo/type/atomic/IGCObject_DAtomicType.hpp b/include/xo/type/atomic/IGCObject_DAtomicType.hpp index 00763e4..6907e7c 100644 --- a/include/xo/type/atomic/IGCObject_DAtomicType.hpp +++ b/include/xo/type/atomic/IGCObject_DAtomicType.hpp @@ -53,7 +53,7 @@ namespace xo { // non-const methods /** move instance using allocator **/ - static Opaque shallow_move(DAtomicType & self, obj mm) noexcept; + static Opaque shallow_move(DAtomicType & self, obj gc) noexcept; /** during GC: forward immdiate children **/ static size_type forward_children(DAtomicType & self, obj gc) noexcept; ///@} diff --git a/include/xo/type/function/IGCObject_DFunctionType.hpp b/include/xo/type/function/IGCObject_DFunctionType.hpp index 9c8727c..f43b41e 100644 --- a/include/xo/type/function/IGCObject_DFunctionType.hpp +++ b/include/xo/type/function/IGCObject_DFunctionType.hpp @@ -53,7 +53,7 @@ namespace xo { // non-const methods /** move instance using allocator **/ - static Opaque shallow_move(DFunctionType & self, obj mm) noexcept; + static Opaque shallow_move(DFunctionType & self, obj gc) noexcept; /** during GC: forward immdiate children **/ static size_type forward_children(DFunctionType & self, obj gc) noexcept; ///@} diff --git a/include/xo/type/list/IGCObject_DListType.hpp b/include/xo/type/list/IGCObject_DListType.hpp index 2459fff..296779e 100644 --- a/include/xo/type/list/IGCObject_DListType.hpp +++ b/include/xo/type/list/IGCObject_DListType.hpp @@ -53,7 +53,7 @@ namespace xo { // non-const methods /** move instance using allocator **/ - static Opaque shallow_move(DListType & self, obj mm) noexcept; + static Opaque shallow_move(DListType & self, obj gc) noexcept; /** during GC: forward immdiate children **/ static size_type forward_children(DListType & self, obj gc) noexcept; ///@} diff --git a/include/xo/type/typevar/DTypeVarRef.hpp b/include/xo/type/typevar/DTypeVarRef.hpp index 4ce9a66..f59f3f7 100644 --- a/include/xo/type/typevar/DTypeVarRef.hpp +++ b/include/xo/type/typevar/DTypeVarRef.hpp @@ -54,7 +54,7 @@ namespace xo { /** @defgroup xo-scm-atomictype-gcobject-facet **/ ///@{ std::size_t shallow_size() const noexcept; - DTypeVarRef * shallow_move(obj mm) noexcept; + DTypeVarRef * shallow_move(obj gc) noexcept; std::size_t forward_children(obj gc) noexcept; ///@} diff --git a/include/xo/type/typevar/IGCObject_DTypeVarRef.hpp b/include/xo/type/typevar/IGCObject_DTypeVarRef.hpp index d025087..e491cc3 100644 --- a/include/xo/type/typevar/IGCObject_DTypeVarRef.hpp +++ b/include/xo/type/typevar/IGCObject_DTypeVarRef.hpp @@ -53,7 +53,7 @@ namespace xo { // non-const methods /** move instance using allocator **/ - static Opaque shallow_move(DTypeVarRef & self, obj mm) noexcept; + static Opaque shallow_move(DTypeVarRef & self, obj gc) noexcept; /** during GC: forward immdiate children **/ static size_type forward_children(DTypeVarRef & self, obj gc) noexcept; ///@} diff --git a/src/type/DArrayType.cpp b/src/type/DArrayType.cpp index b7c628a..52d25f5 100644 --- a/src/type/DArrayType.cpp +++ b/src/type/DArrayType.cpp @@ -83,9 +83,9 @@ namespace xo { } DArrayType * - DArrayType::shallow_move(obj mm) noexcept + DArrayType::shallow_move(obj gc) noexcept { - return mm.std_copy_for(this); + return gc.std_copy_for(this); } std::size_t diff --git a/src/type/DAtomicType.cpp b/src/type/DAtomicType.cpp index f25a159..d4f0b16 100644 --- a/src/type/DAtomicType.cpp +++ b/src/type/DAtomicType.cpp @@ -61,9 +61,9 @@ namespace xo { } DAtomicType * - DAtomicType::shallow_move(obj mm) noexcept + DAtomicType::shallow_move(obj gc) noexcept { - return mm.std_copy_for(this); + return gc.std_copy_for(this); } std::size_t diff --git a/src/type/DFunctionType.cpp b/src/type/DFunctionType.cpp index f9ac920..8cb9001 100644 --- a/src/type/DFunctionType.cpp +++ b/src/type/DFunctionType.cpp @@ -94,9 +94,9 @@ namespace xo { } DFunctionType * - DFunctionType::shallow_move(obj mm) noexcept + DFunctionType::shallow_move(obj gc) noexcept { - return mm.std_copy_for(this); + return gc.std_copy_for(this); } std::size_t diff --git a/src/type/DListType.cpp b/src/type/DListType.cpp index 2906053..487cc5f 100644 --- a/src/type/DListType.cpp +++ b/src/type/DListType.cpp @@ -88,9 +88,9 @@ namespace xo { } DListType * - DListType::shallow_move(obj mm) noexcept + DListType::shallow_move(obj gc) noexcept { - return mm.std_copy_for(this); + return gc.std_copy_for(this); } std::size_t diff --git a/src/type/DTypeVarRef.cpp b/src/type/DTypeVarRef.cpp index d618a2f..a712174 100644 --- a/src/type/DTypeVarRef.cpp +++ b/src/type/DTypeVarRef.cpp @@ -82,9 +82,9 @@ namespace xo { } DTypeVarRef * - DTypeVarRef::shallow_move(obj mm) noexcept + DTypeVarRef::shallow_move(obj gc) noexcept { - return mm.std_copy_for(this); + return gc.std_copy_for(this); } std::size_t diff --git a/src/type/IGCObject_DArrayType.cpp b/src/type/IGCObject_DArrayType.cpp index c937580..34319c2 100644 --- a/src/type/IGCObject_DArrayType.cpp +++ b/src/type/IGCObject_DArrayType.cpp @@ -22,9 +22,9 @@ namespace xo { } auto - IGCObject_DArrayType::shallow_move(DArrayType & self, obj mm) noexcept -> Opaque + IGCObject_DArrayType::shallow_move(DArrayType & self, obj gc) noexcept -> Opaque { - return self.shallow_move(mm); + return self.shallow_move(gc); } auto IGCObject_DArrayType::forward_children(DArrayType & self, obj gc) noexcept -> size_type diff --git a/src/type/IGCObject_DAtomicType.cpp b/src/type/IGCObject_DAtomicType.cpp index 3916d76..a0a9281 100644 --- a/src/type/IGCObject_DAtomicType.cpp +++ b/src/type/IGCObject_DAtomicType.cpp @@ -22,9 +22,9 @@ namespace xo { } auto - IGCObject_DAtomicType::shallow_move(DAtomicType & self, obj mm) noexcept -> Opaque + IGCObject_DAtomicType::shallow_move(DAtomicType & self, obj gc) noexcept -> Opaque { - return self.shallow_move(mm); + return self.shallow_move(gc); } auto IGCObject_DAtomicType::forward_children(DAtomicType & self, obj gc) noexcept -> size_type diff --git a/src/type/IGCObject_DFunctionType.cpp b/src/type/IGCObject_DFunctionType.cpp index 4c7c7c1..04e5760 100644 --- a/src/type/IGCObject_DFunctionType.cpp +++ b/src/type/IGCObject_DFunctionType.cpp @@ -22,9 +22,9 @@ namespace xo { } auto - IGCObject_DFunctionType::shallow_move(DFunctionType & self, obj mm) noexcept -> Opaque + IGCObject_DFunctionType::shallow_move(DFunctionType & self, obj gc) noexcept -> Opaque { - return self.shallow_move(mm); + return self.shallow_move(gc); } auto IGCObject_DFunctionType::forward_children(DFunctionType & self, obj gc) noexcept -> size_type diff --git a/src/type/IGCObject_DListType.cpp b/src/type/IGCObject_DListType.cpp index ff3820d..fe721a3 100644 --- a/src/type/IGCObject_DListType.cpp +++ b/src/type/IGCObject_DListType.cpp @@ -22,9 +22,9 @@ namespace xo { } auto - IGCObject_DListType::shallow_move(DListType & self, obj mm) noexcept -> Opaque + IGCObject_DListType::shallow_move(DListType & self, obj gc) noexcept -> Opaque { - return self.shallow_move(mm); + return self.shallow_move(gc); } auto IGCObject_DListType::forward_children(DListType & self, obj gc) noexcept -> size_type diff --git a/src/type/IGCObject_DTypeVarRef.cpp b/src/type/IGCObject_DTypeVarRef.cpp index 9dc58dc..f4f5d59 100644 --- a/src/type/IGCObject_DTypeVarRef.cpp +++ b/src/type/IGCObject_DTypeVarRef.cpp @@ -22,9 +22,9 @@ namespace xo { } auto - IGCObject_DTypeVarRef::shallow_move(DTypeVarRef & self, obj mm) noexcept -> Opaque + IGCObject_DTypeVarRef::shallow_move(DTypeVarRef & self, obj gc) noexcept -> Opaque { - return self.shallow_move(mm); + return self.shallow_move(gc); } auto IGCObject_DTypeVarRef::forward_children(DTypeVarRef & self, obj gc) noexcept -> size_type