xo-alloc/xo-object2/include/xo/object2/IGCObject_DInteger.hpp

30 lines
821 B
C++

/** @file IGCObject_DInteger.hpp
*
* @author Roland Conybeare, Dec 2025
**/
#pragma once
#include "xo/alloc2/alloc/AAllocator.hpp"
#include <xo/gc/AGCObject.hpp>
#include <xo/gc/detail/IGCObject_Xfer.hpp>
#include "DInteger.hpp"
namespace xo {
namespace scm {
/* changes here coordinate with:
* IGCObject_Xfer
*/
struct IGCObject_DInteger {
public:
using AAllocator = xo::mm::AAllocator;
using size_type = std::size_t;
static size_type shallow_size(const DInteger & d) noexcept;
static DInteger * shallow_copy(const DInteger & d, obj<AAllocator> mm) noexcept;
static size_type forward_children(DInteger & d) noexcept;
};
} /*namespace scm*/
} /*namespace xo*/
/* end IGCObject_DInteger.hpp */