xo-expression2: + GCObject,Printable facets for DSequenceExpr

This commit is contained in:
Roland Conybeare 2026-01-31 12:40:50 -05:00
commit 440d43e109
57 changed files with 348 additions and 46 deletions

View file

@ -0,0 +1,67 @@
/** @file IGCObject_DSequenceExpr.hpp
*
* Generated automagically from ingredients:
* 1. code generator:
* [/home/roland/proj/xo-umbrella2-claude1/xo-facet/codegen/genfacet]
* arguments:
* --input [idl/IGCObject_DSequenceExpr.json5]
* 2. jinja2 template for abstract facet .hpp file:
* [iface_facet_repr.hpp.j2]
* 3. idl for facet methods
* [idl/IGCObject_DSequenceExpr.json5]
**/
#pragma once
#include "GCObject.hpp"
#include <xo/gc/GCObject.hpp>
#include <xo/alloc2/Allocator.hpp>
#include "DSequenceExpr.hpp"
namespace xo { namespace scm { class IGCObject_DSequenceExpr; } }
namespace xo {
namespace facet {
template <>
struct FacetImplementation<xo::mm::AGCObject,
xo::scm::DSequenceExpr>
{
using ImplType = xo::mm::IGCObject_Xfer
<xo::scm::DSequenceExpr,
xo::scm::IGCObject_DSequenceExpr>;
};
}
}
namespace xo {
namespace scm {
/** @class IGCObject_DSequenceExpr
**/
class IGCObject_DSequenceExpr {
public:
/** @defgroup scm-gcobject-dsequenceexpr-type-traits **/
///@{
using size_type = xo::mm::AGCObject::size_type;
using AAllocator = xo::mm::AGCObject::AAllocator;
using ACollector = xo::mm::AGCObject::ACollector;
using Copaque = xo::mm::AGCObject::Copaque;
using Opaque = xo::mm::AGCObject::Opaque;
///@}
/** @defgroup scm-gcobject-dsequenceexpr-methods **/
///@{
// const methods
/** memory consumption for this instance **/
static size_type shallow_size(const DSequenceExpr & self) noexcept;
/** copy instance using allocator **/
static Opaque shallow_copy(const DSequenceExpr & self, obj<AAllocator> mm) noexcept;
// non-const methods
/** during GC: forward immdiate children **/
static size_type forward_children(DSequenceExpr & self, obj<ACollector> gc) noexcept;
///@}
};
} /*namespace scm*/
} /*namespace xo*/
/* end */