refactor: rename shallow_copy -> shallow_move + streamline
Use RCollector.std_copy_for where appropriate
This commit is contained in:
parent
f7b8c62305
commit
a08fe61a45
20 changed files with 30 additions and 30 deletions
|
|
@ -42,7 +42,7 @@ namespace xo {
|
|||
/** @defgroup xo-scm-arraytype-gcobject-facet **/
|
||||
///@{
|
||||
std::size_t shallow_size() const noexcept;
|
||||
DArrayType * shallow_move(obj<AAllocator> mm) noexcept;
|
||||
DArrayType * shallow_move(obj<ACollector> gc) noexcept;
|
||||
std::size_t forward_children(obj<ACollector> gc) noexcept;
|
||||
///@}
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ namespace xo {
|
|||
/** @defgroup xo-scm-atomictype-gcobject-facet **/
|
||||
///@{
|
||||
std::size_t shallow_size() const noexcept;
|
||||
DAtomicType * shallow_move(obj<AAllocator> mm) noexcept;
|
||||
DAtomicType * shallow_move(obj<ACollector> gc) noexcept;
|
||||
std::size_t forward_children(obj<ACollector> gc) noexcept;
|
||||
///@}
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ namespace xo {
|
|||
/** @defgroup xo-scm-arraytype-gcobject-facet **/
|
||||
///@{
|
||||
std::size_t shallow_size() const noexcept;
|
||||
DFunctionType * shallow_move(obj<AAllocator> mm) noexcept;
|
||||
DFunctionType * shallow_move(obj<ACollector> gc) noexcept;
|
||||
std::size_t forward_children(obj<ACollector> gc) noexcept;
|
||||
///@}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace xo {
|
|||
/** @defgroup xo-scm-listtype-gcobject-facet **/
|
||||
///@{
|
||||
std::size_t shallow_size() const noexcept;
|
||||
DListType * shallow_move(obj<AAllocator> mm) noexcept;
|
||||
DListType * shallow_move(obj<ACollector> gc) noexcept;
|
||||
std::size_t forward_children(obj<ACollector> gc) noexcept;
|
||||
///@}
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ namespace xo {
|
|||
|
||||
// non-const methods
|
||||
/** move instance using allocator **/
|
||||
static Opaque shallow_move(DArrayType & self, obj<AAllocator> mm) noexcept;
|
||||
static Opaque shallow_move(DArrayType & self, obj<ACollector> gc) noexcept;
|
||||
/** during GC: forward immdiate children **/
|
||||
static size_type forward_children(DArrayType & self, obj<ACollector> gc) noexcept;
|
||||
///@}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ namespace xo {
|
|||
|
||||
// non-const methods
|
||||
/** move instance using allocator **/
|
||||
static Opaque shallow_move(DAtomicType & self, obj<AAllocator> mm) noexcept;
|
||||
static Opaque shallow_move(DAtomicType & self, obj<ACollector> gc) noexcept;
|
||||
/** during GC: forward immdiate children **/
|
||||
static size_type forward_children(DAtomicType & self, obj<ACollector> gc) noexcept;
|
||||
///@}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ namespace xo {
|
|||
|
||||
// non-const methods
|
||||
/** move instance using allocator **/
|
||||
static Opaque shallow_move(DFunctionType & self, obj<AAllocator> mm) noexcept;
|
||||
static Opaque shallow_move(DFunctionType & self, obj<ACollector> gc) noexcept;
|
||||
/** during GC: forward immdiate children **/
|
||||
static size_type forward_children(DFunctionType & self, obj<ACollector> gc) noexcept;
|
||||
///@}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ namespace xo {
|
|||
|
||||
// non-const methods
|
||||
/** move instance using allocator **/
|
||||
static Opaque shallow_move(DListType & self, obj<AAllocator> mm) noexcept;
|
||||
static Opaque shallow_move(DListType & self, obj<ACollector> gc) noexcept;
|
||||
/** during GC: forward immdiate children **/
|
||||
static size_type forward_children(DListType & self, obj<ACollector> gc) noexcept;
|
||||
///@}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ namespace xo {
|
|||
/** @defgroup xo-scm-atomictype-gcobject-facet **/
|
||||
///@{
|
||||
std::size_t shallow_size() const noexcept;
|
||||
DTypeVarRef * shallow_move(obj<AAllocator> mm) noexcept;
|
||||
DTypeVarRef * shallow_move(obj<ACollector> gc) noexcept;
|
||||
std::size_t forward_children(obj<ACollector> gc) noexcept;
|
||||
///@}
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ namespace xo {
|
|||
|
||||
// non-const methods
|
||||
/** move instance using allocator **/
|
||||
static Opaque shallow_move(DTypeVarRef & self, obj<AAllocator> mm) noexcept;
|
||||
static Opaque shallow_move(DTypeVarRef & self, obj<ACollector> gc) noexcept;
|
||||
/** during GC: forward immdiate children **/
|
||||
static size_type forward_children(DTypeVarRef & self, obj<ACollector> gc) noexcept;
|
||||
///@}
|
||||
|
|
|
|||
|
|
@ -83,9 +83,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
DArrayType *
|
||||
DArrayType::shallow_move(obj<AAllocator> mm) noexcept
|
||||
DArrayType::shallow_move(obj<ACollector> gc) noexcept
|
||||
{
|
||||
return mm.std_copy_for(this);
|
||||
return gc.std_copy_for(this);
|
||||
}
|
||||
|
||||
std::size_t
|
||||
|
|
|
|||
|
|
@ -61,9 +61,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
DAtomicType *
|
||||
DAtomicType::shallow_move(obj<AAllocator> mm) noexcept
|
||||
DAtomicType::shallow_move(obj<ACollector> gc) noexcept
|
||||
{
|
||||
return mm.std_copy_for(this);
|
||||
return gc.std_copy_for(this);
|
||||
}
|
||||
|
||||
std::size_t
|
||||
|
|
|
|||
|
|
@ -94,9 +94,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
DFunctionType *
|
||||
DFunctionType::shallow_move(obj<AAllocator> mm) noexcept
|
||||
DFunctionType::shallow_move(obj<ACollector> gc) noexcept
|
||||
{
|
||||
return mm.std_copy_for(this);
|
||||
return gc.std_copy_for(this);
|
||||
}
|
||||
|
||||
std::size_t
|
||||
|
|
|
|||
|
|
@ -88,9 +88,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
DListType *
|
||||
DListType::shallow_move(obj<AAllocator> mm) noexcept
|
||||
DListType::shallow_move(obj<ACollector> gc) noexcept
|
||||
{
|
||||
return mm.std_copy_for(this);
|
||||
return gc.std_copy_for(this);
|
||||
}
|
||||
|
||||
std::size_t
|
||||
|
|
|
|||
|
|
@ -82,9 +82,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
DTypeVarRef *
|
||||
DTypeVarRef::shallow_move(obj<AAllocator> mm) noexcept
|
||||
DTypeVarRef::shallow_move(obj<ACollector> gc) noexcept
|
||||
{
|
||||
return mm.std_copy_for(this);
|
||||
return gc.std_copy_for(this);
|
||||
}
|
||||
|
||||
std::size_t
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
auto
|
||||
IGCObject_DArrayType::shallow_move(DArrayType & self, obj<AAllocator> mm) noexcept -> Opaque
|
||||
IGCObject_DArrayType::shallow_move(DArrayType & self, obj<ACollector> gc) noexcept -> Opaque
|
||||
{
|
||||
return self.shallow_move(mm);
|
||||
return self.shallow_move(gc);
|
||||
}
|
||||
auto
|
||||
IGCObject_DArrayType::forward_children(DArrayType & self, obj<ACollector> gc) noexcept -> size_type
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
auto
|
||||
IGCObject_DAtomicType::shallow_move(DAtomicType & self, obj<AAllocator> mm) noexcept -> Opaque
|
||||
IGCObject_DAtomicType::shallow_move(DAtomicType & self, obj<ACollector> gc) noexcept -> Opaque
|
||||
{
|
||||
return self.shallow_move(mm);
|
||||
return self.shallow_move(gc);
|
||||
}
|
||||
auto
|
||||
IGCObject_DAtomicType::forward_children(DAtomicType & self, obj<ACollector> gc) noexcept -> size_type
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
auto
|
||||
IGCObject_DFunctionType::shallow_move(DFunctionType & self, obj<AAllocator> mm) noexcept -> Opaque
|
||||
IGCObject_DFunctionType::shallow_move(DFunctionType & self, obj<ACollector> gc) noexcept -> Opaque
|
||||
{
|
||||
return self.shallow_move(mm);
|
||||
return self.shallow_move(gc);
|
||||
}
|
||||
auto
|
||||
IGCObject_DFunctionType::forward_children(DFunctionType & self, obj<ACollector> gc) noexcept -> size_type
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
auto
|
||||
IGCObject_DListType::shallow_move(DListType & self, obj<AAllocator> mm) noexcept -> Opaque
|
||||
IGCObject_DListType::shallow_move(DListType & self, obj<ACollector> gc) noexcept -> Opaque
|
||||
{
|
||||
return self.shallow_move(mm);
|
||||
return self.shallow_move(gc);
|
||||
}
|
||||
auto
|
||||
IGCObject_DListType::forward_children(DListType & self, obj<ACollector> gc) noexcept -> size_type
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
auto
|
||||
IGCObject_DTypeVarRef::shallow_move(DTypeVarRef & self, obj<AAllocator> mm) noexcept -> Opaque
|
||||
IGCObject_DTypeVarRef::shallow_move(DTypeVarRef & self, obj<ACollector> gc) noexcept -> Opaque
|
||||
{
|
||||
return self.shallow_move(mm);
|
||||
return self.shallow_move(gc);
|
||||
}
|
||||
auto
|
||||
IGCObject_DTypeVarRef::forward_children(DTypeVarRef & self, obj<ACollector> gc) noexcept -> size_type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue