xo-object2: type registration + gc fixes
This commit is contained in:
parent
4af2cd0401
commit
99108b8dbb
16 changed files with 285 additions and 17 deletions
|
|
@ -12,6 +12,19 @@
|
|||
#include "DInteger.hpp"
|
||||
|
||||
namespace xo {
|
||||
namespace scm { struct IGCObject_DInteger; }
|
||||
|
||||
namespace facet {
|
||||
template <>
|
||||
struct FacetImplementation<xo::mm::AGCObject,
|
||||
xo::scm::DInteger>
|
||||
{
|
||||
using ImplType = xo::mm::IGCObject_Xfer
|
||||
<xo::scm::DInteger,
|
||||
xo::scm::IGCObject_DInteger>;
|
||||
};
|
||||
}
|
||||
|
||||
namespace scm {
|
||||
/* changes here coordinate with:
|
||||
* IGCObject_Xfer
|
||||
|
|
@ -19,11 +32,12 @@ namespace xo {
|
|||
struct IGCObject_DInteger {
|
||||
public:
|
||||
using AAllocator = xo::mm::AAllocator;
|
||||
using ACollector = xo::mm::ACollector;
|
||||
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;
|
||||
static size_type forward_children(DInteger & d, obj<ACollector> gc) noexcept;
|
||||
};
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue