+ xo-object2

This commit is contained in:
Roland Conybeare 2025-12-14 11:29:54 -05:00
commit ae8b4348b3
10 changed files with 262 additions and 0 deletions

View file

@ -0,0 +1,14 @@
/** @file DFloat.hpp
*
* @author Roland Conybeare, Dec 2025
**/
#pragma once
namespace xo {
namespace scm {
using DFloat = double;
} /*nmaespace obj*/
} /*namespace xo*/
/* end DFloat.hpp */

View file

@ -0,0 +1,14 @@
/** @file DInteger.hpp
*
* @author Roland Conybeare, Dec 2025
**/
#pragma once
namespace xo {
namespace scm {
using DInteger = double;
} /*nmaespace obj*/
} /*namespace xo*/
/* end DInteger.hpp */

View file

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

View file

@ -0,0 +1,30 @@
/** @file IGCObject_DInteger.hpp
*
* @author Roland Conybeare, Dec 2025
**/
#pragma once
#include "xo/alloc2/AAllocator.hpp"
#include "xo/alloc2/AGCObject.hpp"
#include "xo/alloc2/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 */