refactor: rename shallow_copy -> shallow_move + streamline
Use RCollector.std_copy_for where appropriate
This commit is contained in:
parent
9a494d268b
commit
d0e6ab5b44
8 changed files with 19 additions and 12 deletions
|
|
@ -245,7 +245,7 @@ namespace xo {
|
|||
size_type shallow_size() const noexcept;
|
||||
|
||||
/** clone string, using memory from allocator @p mm **/
|
||||
DString * shallow_move(obj<AAllocator> mm) const noexcept;
|
||||
DString * shallow_move(obj<ACollector> gc) noexcept;
|
||||
|
||||
size_type forward_children(obj<ACollector> gc) noexcept;
|
||||
/** fixup child pointers (trivial for DString, no children)
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ namespace xo {
|
|||
std::size_t shallow_size() const noexcept;
|
||||
|
||||
/** clone unique string, using memory from allocator @p mm. **/
|
||||
DUniqueString * shallow_move(obj<AAllocator> mm) const noexcept;
|
||||
DUniqueString * shallow_move(obj<ACollector> gc) noexcept;
|
||||
|
||||
/** fixup child pointers (trivial for DUniqueString, no gc-owned children **/
|
||||
std::size_t forward_children(obj<ACollector> gc) noexcept;
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ namespace xo {
|
|||
|
||||
// non-const methods
|
||||
/** move instance using allocator **/
|
||||
static Opaque shallow_move(DString & self, obj<AAllocator> mm) noexcept;
|
||||
static Opaque shallow_move(DString & self, obj<ACollector> gc) noexcept;
|
||||
/** during GC: forward immdiate children **/
|
||||
static size_type forward_children(DString & self, obj<ACollector> gc) noexcept;
|
||||
///@}
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ namespace xo {
|
|||
|
||||
// non-const methods
|
||||
/** move instance using allocator **/
|
||||
static Opaque shallow_move(DUniqueString & self, obj<AAllocator> mm) noexcept;
|
||||
static Opaque shallow_move(DUniqueString & self, obj<ACollector> gc) noexcept;
|
||||
/** during GC: forward immdiate children **/
|
||||
static size_type forward_children(DUniqueString & self, obj<ACollector> gc) noexcept;
|
||||
///@}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue