Helps streamline DX1Collector in xo-gc/. Want both forward and verify entry points for the same representation.
70 lines
No EOL
2.3 KiB
C++
70 lines
No EOL
2.3 KiB
C++
/** @file IGCObject_DDefineExpr.hpp
|
|
*
|
|
* Generated automagically from ingredients:
|
|
* 1. code generator:
|
|
* [xo-facet/codegen/genfacet]
|
|
* arguments:
|
|
* --input [idl/IGCObject_DDefineExpr.json5]
|
|
* 2. jinja2 template for abstract facet .hpp file:
|
|
* [iface_facet_repr.hpp.j2]
|
|
* 3. idl for facet methods
|
|
* [idl/IGCObject_DDefineExpr.json5]
|
|
**/
|
|
|
|
#pragma once
|
|
|
|
#include "GCObject.hpp"
|
|
#include <xo/alloc2/GCObject.hpp>
|
|
#include <xo/alloc2/Allocator.hpp>
|
|
#include "DDefineExpr.hpp"
|
|
|
|
namespace xo { namespace scm { class IGCObject_DDefineExpr; } }
|
|
|
|
namespace xo {
|
|
namespace facet {
|
|
template <>
|
|
struct FacetImplementation<xo::mm::AGCObject,
|
|
xo::scm::DDefineExpr>
|
|
{
|
|
using ImplType = xo::mm::IGCObject_Xfer
|
|
<xo::scm::DDefineExpr,
|
|
xo::scm::IGCObject_DDefineExpr>;
|
|
};
|
|
}
|
|
}
|
|
|
|
namespace xo {
|
|
namespace scm {
|
|
/** @class IGCObject_DDefineExpr
|
|
**/
|
|
class IGCObject_DDefineExpr {
|
|
public:
|
|
/** @defgroup scm-gcobject-ddefineexpr-type-traits **/
|
|
///@{
|
|
using size_type = xo::mm::AGCObject::size_type;
|
|
using AAllocator = xo::mm::AGCObject::AAllocator;
|
|
using ACollector = xo::mm::AGCObject::ACollector;
|
|
using AGCObjectVisitor = xo::mm::AGCObject::AGCObjectVisitor;
|
|
using VisitReason = xo::mm::AGCObject::VisitReason;
|
|
using Copaque = xo::mm::AGCObject::Copaque;
|
|
using Opaque = xo::mm::AGCObject::Opaque;
|
|
///@}
|
|
/** @defgroup scm-gcobject-ddefineexpr-methods **/
|
|
///@{
|
|
// const methods
|
|
|
|
// non-const methods
|
|
/** move instance using object visitor.
|
|
Arguably abusing the word 'visitor' here **/
|
|
static Opaque gco_shallow_move(DDefineExpr & self, obj<AGCObjectVisitor> gc) noexcept;
|
|
/** Invoke fn.visit_child(iface,data) for each child GCObject pointer.
|
|
Context: provides address of data pointer so it can be updated in place
|
|
when @p fn invokes garbage collector reentry point **/
|
|
static void visit_gco_children(DDefineExpr & self, VisitReason reason, obj<AGCObjectVisitor> fn) noexcept;
|
|
///@}
|
|
};
|
|
|
|
} /*namespace scm*/
|
|
} /*namespace xo*/
|
|
|
|
/* end */ |