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 06161d2b50
164 changed files with 255 additions and 255 deletions

View file

@ -134,7 +134,7 @@ namespace xo {
/** @defgroup scm-primitive-gcobject-facet **/
///@{
std::size_t shallow_size() const noexcept;
Primitive * shallow_copy(obj<AAllocator> mm) const noexcept;
Primitive * shallow_move(obj<AAllocator> mm) const noexcept;
std::size_t forward_children(obj<ACollector> gc) noexcept;
///@}
@ -198,7 +198,7 @@ namespace xo {
template <typename Fn>
Primitive<Fn> *
Primitive<Fn>::shallow_copy(obj<AAllocator> mm) const noexcept {
Primitive<Fn>::shallow_move(obj<AAllocator> mm) const noexcept {
void * mem = mm.alloc_copy((std::byte *)this);
if (mem) {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DPrimitive_gco_0::shallow_copy(DPrimitive_gco_0 & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DPrimitive_gco_0::shallow_move(DPrimitive_gco_0 & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DPrimitive_gco_0::forward_children(DPrimitive_gco_0 & self, obj<ACollector> gc) noexcept -> size_type

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DPrimitive_gco_1_gco::shallow_copy(DPrimitive_gco_1_gco & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DPrimitive_gco_1_gco::shallow_move(DPrimitive_gco_1_gco & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DPrimitive_gco_1_gco::forward_children(DPrimitive_gco_1_gco & self, obj<ACollector> gc) noexcept -> size_type

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DPrimitive_gco_2_dict_string::shallow_copy(DPrimitive_gco_2_dict_string & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DPrimitive_gco_2_dict_string::shallow_move(DPrimitive_gco_2_dict_string & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DPrimitive_gco_2_dict_string::forward_children(DPrimitive_gco_2_dict_string & self, obj<ACollector> gc) noexcept -> size_type

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DPrimitive_gco_2_gco_gco::shallow_copy(DPrimitive_gco_2_gco_gco & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DPrimitive_gco_2_gco_gco::shallow_move(DPrimitive_gco_2_gco_gco & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DPrimitive_gco_2_gco_gco::forward_children(DPrimitive_gco_2_gco_gco & self, obj<ACollector> gc) noexcept -> size_type

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DPrimitive_gco_3_dict_string_gco::shallow_copy(DPrimitive_gco_3_dict_string_gco & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DPrimitive_gco_3_dict_string_gco::shallow_move(DPrimitive_gco_3_dict_string_gco & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DPrimitive_gco_3_dict_string_gco::forward_children(DPrimitive_gco_3_dict_string_gco & self, obj<ACollector> gc) noexcept -> size_type