46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
/** @file IGCObject_DList.hpp
|
|
*
|
|
* @author Roland Conybeare, Dec 2025
|
|
**/
|
|
|
|
#pragma once
|
|
|
|
#include <xo/alloc2/Allocator.hpp>
|
|
#include <xo/gc/Collector.hpp>
|
|
#include <xo/gc/detail/AGCObject.hpp>
|
|
#include <xo/gc/detail/IGCObject_Xfer.hpp>
|
|
#include "DList.hpp"
|
|
|
|
namespace xo {
|
|
namespace scm { struct IGCObject_DList; }
|
|
|
|
namespace facet {
|
|
template <>
|
|
struct FacetImplementation<xo::mm::AGCObject,
|
|
xo::scm::DList>
|
|
{
|
|
using ImplType = xo::mm::IGCObject_Xfer
|
|
<xo::scm::DList,
|
|
xo::scm::IGCObject_DList>;
|
|
};
|
|
}
|
|
|
|
namespace scm {
|
|
/* changes here coordinate with:
|
|
* IGCObject_XFer
|
|
*/
|
|
struct IGCObject_DList {
|
|
public:
|
|
using AAllocator = xo::mm::AAllocator;
|
|
using ACollector = xo::mm::ACollector;
|
|
using size_type = std::size_t;
|
|
|
|
static size_type shallow_size(const DList & d) noexcept;
|
|
static DList * shallow_copy(const DList & d, obj<AAllocator> mm) noexcept;
|
|
static size_type forward_children(DList & d, obj<ACollector> gc) noexcept;
|
|
};
|
|
|
|
} /*namespace scm*/
|
|
} /*namespace xo*/
|
|
|
|
/* end IGCObject_DList.hpp */
|