/** @file IGCObject_DInteger.hpp
 *
 *  @author Roland Conybeare, Dec 2025
 **/

#pragma once

#include "xo/alloc2/alloc/AAllocator.hpp"
#include <xo/alloc2/gcobject/AGCObject.hpp>
#include <xo/alloc2/gcobject/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 */
