xo-interpreter2 stack: + DPrimitive_gco_3_dict_string_gco + dict_upsert
This commit is contained in:
parent
dbf43f009b
commit
b39f1bb085
15 changed files with 438 additions and 0 deletions
26
include/xo/procedure2/DPrimitive_gco_3_dict_string_gco.hpp
Normal file
26
include/xo/procedure2/DPrimitive_gco_3_dict_string_gco.hpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/** @file DPrimitive_gco_3_dict_string_gco.hpp
|
||||
*
|
||||
* @author Roland Conybeare, Mar 2026
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <xo/object2/Dictionary.hpp>
|
||||
#include <xo/object2/String.hpp>
|
||||
#include <xo/gc/GCObject.hpp>
|
||||
#include "DPrimitive.hpp"
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
using xo::mm::AGCObject;
|
||||
using xo::facet::obj;
|
||||
|
||||
using DPrimitive_gco_3_dict_string_gco
|
||||
= Primitive<obj<AGCObject> (*)(obj<ARuntimeContext>,
|
||||
obj<AGCObject,DDictionary>,
|
||||
obj<AGCObject,DString>,
|
||||
obj<AGCObject>)>;
|
||||
}
|
||||
}
|
||||
|
||||
/* end DPrimitive_gco_3_dict_string_gco.hpp */
|
||||
11
include/xo/procedure2/Primitive_gco_3_dict_string_gco.hpp
Normal file
11
include/xo/procedure2/Primitive_gco_3_dict_string_gco.hpp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/** @file Primitive_gco_3_dict_string_gco.hpp
|
||||
*
|
||||
* @author Roland Conybeare, Feb 2026
|
||||
**/
|
||||
|
||||
#include "DPrimitive_gco_3_dict_string_gco.hpp"
|
||||
#include "detail/IProcedure_DPrimitive_gco_3_dict_string_gco.hpp"
|
||||
#include "detail/IGCObject_DPrimitive_gco_3_dict_string_gco.hpp"
|
||||
#include "detail/IPrintable_DPrimitive_gco_3_dict_string_gco.hpp"
|
||||
|
||||
/* end Primitive_gco_3_dict_string_gco.hpp */
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
/** @file IGCObject_DPrimitive_gco_3_dict_string_gco.hpp
|
||||
*
|
||||
* Generated automagically from ingredients:
|
||||
* 1. code generator:
|
||||
* [xo-facet/codegen/genfacet]
|
||||
* arguments:
|
||||
* --input [idl/IGCObject_DPrimitive_gco_3_dict_string_gco.json5]
|
||||
* 2. jinja2 template for abstract facet .hpp file:
|
||||
* [iface_facet_repr.hpp.j2]
|
||||
* 3. idl for facet methods
|
||||
* [idl/IGCObject_DPrimitive_gco_3_dict_string_gco.json5]
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "GCObject.hpp"
|
||||
#include <xo/gc/GCObject.hpp>
|
||||
#include <xo/alloc2/Allocator.hpp>
|
||||
#include "DPrimitive_gco_3_dict_string_gco.hpp"
|
||||
|
||||
namespace xo { namespace scm { class IGCObject_DPrimitive_gco_3_dict_string_gco; } }
|
||||
|
||||
namespace xo {
|
||||
namespace facet {
|
||||
template <>
|
||||
struct FacetImplementation<xo::mm::AGCObject,
|
||||
xo::scm::DPrimitive_gco_3_dict_string_gco>
|
||||
{
|
||||
using ImplType = xo::mm::IGCObject_Xfer
|
||||
<xo::scm::DPrimitive_gco_3_dict_string_gco,
|
||||
xo::scm::IGCObject_DPrimitive_gco_3_dict_string_gco>;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
/** @class IGCObject_DPrimitive_gco_3_dict_string_gco
|
||||
**/
|
||||
class IGCObject_DPrimitive_gco_3_dict_string_gco {
|
||||
public:
|
||||
/** @defgroup scm-gcobject-dprimitive_gco_3_dict_string_gco-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-dprimitive_gco_3_dict_string_gco-methods **/
|
||||
///@{
|
||||
// const methods
|
||||
/** memory consumption for this instance **/
|
||||
static size_type shallow_size(const DPrimitive_gco_3_dict_string_gco & self) noexcept;
|
||||
/** copy instance using allocator **/
|
||||
static Opaque shallow_copy(const DPrimitive_gco_3_dict_string_gco & self, obj<AAllocator> mm) noexcept;
|
||||
|
||||
// non-const methods
|
||||
/** during GC: forward immdiate children **/
|
||||
static size_type forward_children(DPrimitive_gco_3_dict_string_gco & self, obj<ACollector> gc) noexcept;
|
||||
///@}
|
||||
};
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end */
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
/** @file IPrintable_DPrimitive_gco_3_dict_string_gco.hpp
|
||||
*
|
||||
* Generated automagically from ingredients:
|
||||
* 1. code generator:
|
||||
* [xo-facet/codegen/genfacet]
|
||||
* arguments:
|
||||
* --input [idl/IPrintable_DPrimitive_gco_3_dict_string_gco.json5]
|
||||
* 2. jinja2 template for abstract facet .hpp file:
|
||||
* [iface_facet_repr.hpp.j2]
|
||||
* 3. idl for facet methods
|
||||
* [idl/IPrintable_DPrimitive_gco_3_dict_string_gco.json5]
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Printable.hpp"
|
||||
#include <xo/printable2/Printable.hpp>
|
||||
#include <xo/printable2/detail/IPrintable_Xfer.hpp>
|
||||
#include "DPrimitive_gco_3_dict_string_gco.hpp"
|
||||
|
||||
namespace xo { namespace scm { class IPrintable_DPrimitive_gco_3_dict_string_gco; } }
|
||||
|
||||
namespace xo {
|
||||
namespace facet {
|
||||
template <>
|
||||
struct FacetImplementation<xo::print::APrintable,
|
||||
xo::scm::DPrimitive_gco_3_dict_string_gco>
|
||||
{
|
||||
using ImplType = xo::print::IPrintable_Xfer
|
||||
<xo::scm::DPrimitive_gco_3_dict_string_gco,
|
||||
xo::scm::IPrintable_DPrimitive_gco_3_dict_string_gco>;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
/** @class IPrintable_DPrimitive_gco_3_dict_string_gco
|
||||
**/
|
||||
class IPrintable_DPrimitive_gco_3_dict_string_gco {
|
||||
public:
|
||||
/** @defgroup scm-printable-dprimitive_gco_3_dict_string_gco-type-traits **/
|
||||
///@{
|
||||
using ppindentinfo = xo::print::APrintable::ppindentinfo;
|
||||
using Copaque = xo::print::APrintable::Copaque;
|
||||
using Opaque = xo::print::APrintable::Opaque;
|
||||
///@}
|
||||
/** @defgroup scm-printable-dprimitive_gco_3_dict_string_gco-methods **/
|
||||
///@{
|
||||
// const methods
|
||||
/** Pretty-printing support for this object.
|
||||
See [xo-indentlog/xo/indentlog/pretty.hpp] **/
|
||||
static bool pretty(const DPrimitive_gco_3_dict_string_gco & self, const ppindentinfo & ppii);
|
||||
|
||||
// non-const methods
|
||||
///@}
|
||||
};
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end */
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
/** @file IProcedure_DPrimitive_gco_3_dict_string_gco.hpp
|
||||
*
|
||||
* Generated automagically from ingredients:
|
||||
* 1. code generator:
|
||||
* [xo-facet/codegen/genfacet]
|
||||
* arguments:
|
||||
* --input [idl/IProcedure_DPrimitive_gco_3_dict_string_gco.json5]
|
||||
* 2. jinja2 template for abstract facet .hpp file:
|
||||
* [iface_facet_repr.hpp.j2]
|
||||
* 3. idl for facet methods
|
||||
* [idl/IProcedure_DPrimitive_gco_3_dict_string_gco.json5]
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Procedure.hpp"
|
||||
#include <xo/procedure2/RuntimeContext.hpp>
|
||||
#include <xo/procedure2/detail/IRuntimeContext_Xfer.hpp>
|
||||
#include <xo/procedure2/Procedure.hpp>
|
||||
#include <xo/procedure2/detail/IProcedure_Xfer.hpp>
|
||||
#include "DPrimitive_gco_3_dict_string_gco.hpp"
|
||||
|
||||
namespace xo { namespace scm { class IProcedure_DPrimitive_gco_3_dict_string_gco; } }
|
||||
|
||||
namespace xo {
|
||||
namespace facet {
|
||||
template <>
|
||||
struct FacetImplementation<xo::scm::AProcedure,
|
||||
xo::scm::DPrimitive_gco_3_dict_string_gco>
|
||||
{
|
||||
using ImplType = xo::scm::IProcedure_Xfer
|
||||
<xo::scm::DPrimitive_gco_3_dict_string_gco,
|
||||
xo::scm::IProcedure_DPrimitive_gco_3_dict_string_gco>;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
/** @class IProcedure_DPrimitive_gco_3_dict_string_gco
|
||||
**/
|
||||
class IProcedure_DPrimitive_gco_3_dict_string_gco {
|
||||
public:
|
||||
/** @defgroup scm-procedure-dprimitive_gco_3_dict_string_gco-type-traits **/
|
||||
///@{
|
||||
using AGCObject = xo::scm::AProcedure::AGCObject;
|
||||
using Copaque = xo::scm::AProcedure::Copaque;
|
||||
using Opaque = xo::scm::AProcedure::Opaque;
|
||||
///@}
|
||||
/** @defgroup scm-procedure-dprimitive_gco_3_dict_string_gco-methods **/
|
||||
///@{
|
||||
// const methods
|
||||
/** true iff procedure takes n arguments **/
|
||||
static bool is_nary(const DPrimitive_gco_3_dict_string_gco & self) noexcept;
|
||||
/** number of arguments. -1 for n-ary **/
|
||||
static std::int32_t n_args(const DPrimitive_gco_3_dict_string_gco & self) noexcept;
|
||||
|
||||
// non-const methods
|
||||
/** invoke procedure; assume arguments satisfy type system **/
|
||||
static obj<AGCObject> apply_nocheck(DPrimitive_gco_3_dict_string_gco & self, obj<ARuntimeContext> rcx, const DArray * args);
|
||||
///@}
|
||||
};
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end */
|
||||
Loading…
Add table
Add a link
Reference in a new issue