+ xo-object2
This commit is contained in:
parent
d005eee946
commit
e5cb3ff96b
10 changed files with 262 additions and 0 deletions
44
xo-object2/src/object2/IGCObject_DInteger.cpp
Normal file
44
xo-object2/src/object2/IGCObject_DInteger.cpp
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
/** @file IGCObject_DInteger.cpp
|
||||
*
|
||||
* @author Roland Conybeare, Dec 2025
|
||||
**/
|
||||
|
||||
#include "IGCObject_DInteger.hpp"
|
||||
#include "AAllocator.hpp"
|
||||
#include "xo/facet/obj.hpp"
|
||||
#include <cstddef>
|
||||
|
||||
namespace xo {
|
||||
using xo::mm::AAllocator;
|
||||
using xo::facet::obj;
|
||||
using std::size_t;
|
||||
|
||||
namespace scm {
|
||||
size_t
|
||||
IGCObject_DInteger::shallow_size(const DInteger &) noexcept
|
||||
{
|
||||
return sizeof(DInteger);
|
||||
}
|
||||
|
||||
DInteger *
|
||||
IGCObject_DInteger::shallow_copy(const DInteger & src,
|
||||
obj<AAllocator> mm) noexcept
|
||||
{
|
||||
DInteger * copy = (DInteger *)mm.alloc(sizeof(DInteger));
|
||||
|
||||
if (copy)
|
||||
*copy = src;
|
||||
|
||||
return copy;
|
||||
}
|
||||
|
||||
size_t
|
||||
IGCObject_DInteger::forward_children(DInteger &) noexcept
|
||||
{
|
||||
return sizeof(DInteger);
|
||||
}
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end IGCObject_DInteger.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue