xo-procedure2/include/xo/procedure2/detail/IRuntimeContext_DSimpleRcx.hpp
Roland Conybeare f7c269a505 xo-gc stack: + request-gc-statistics() primitive
1. xo-gc now depends on xo-object2.
2. use genfacet for ICollector_DX1Collector
3. moves xo-gc utest previously in xo-object2 to more natural
   location in xo-gc/
2026-03-29 13:44:19 -04:00

69 lines
No EOL
2.4 KiB
C++

/** @file IRuntimeContext_DSimpleRcx.hpp
*
* Generated automagically from ingredients:
* 1. code generator:
* [xo-facet/codegen/genfacet]
* arguments:
* --input [idl/IRuntimeContext_DSimpleRcx.json5]
* 2. jinja2 template for abstract facet .hpp file:
* [iface_facet_repr.hpp.j2]
* 3. idl for facet methods
* [idl/IRuntimeContext_DSimpleRcx.json5]
**/
#pragma once
#include "RuntimeContext.hpp"
#include "DSimpleRcx.hpp"
namespace xo { namespace scm { class IRuntimeContext_DSimpleRcx; } }
namespace xo {
namespace facet {
template <>
struct FacetImplementation<xo::scm::ARuntimeContext,
xo::scm::DSimpleRcx>
{
using ImplType = xo::scm::IRuntimeContext_Xfer
<xo::scm::DSimpleRcx,
xo::scm::IRuntimeContext_DSimpleRcx>;
};
}
}
namespace xo {
namespace scm {
/** @class IRuntimeContext_DSimpleRcx
**/
class IRuntimeContext_DSimpleRcx {
public:
/** @defgroup scm-runtimecontext-dsimplercx-type-traits **/
///@{
using AAllocator = xo::scm::ARuntimeContext::AAllocator;
using ACollector = xo::scm::ARuntimeContext::ACollector;
using MemorySizeVisitor = xo::scm::ARuntimeContext::MemorySizeVisitor;
using Copaque = xo::scm::ARuntimeContext::Copaque;
using Opaque = xo::scm::ARuntimeContext::Opaque;
///@}
/** @defgroup scm-runtimecontext-dsimplercx-methods **/
///@{
// const methods
/** default allocator to use for objects **/
static obj<AAllocator> allocator(const DSimpleRcx & self) noexcept;
/** collector facet for allocator. If non-null, same data pointer as allocator **/
static obj<ACollector> collector(const DSimpleRcx & self) noexcept;
/** last-resort allocator for erros. e.g. regular allocator exhausted **/
static obj<AAllocator> error_allocator(const DSimpleRcx & self) noexcept;
/** stringtable for unique symbols **/
static StringTable * stringtable(const DSimpleRcx & self) noexcept;
/** invoke visitor for each distinct memory pool **/
static void visit_pools(const DSimpleRcx & self, MemorySizeVisitor visitor);
// non-const methods
///@}
};
} /*namespace scm*/
} /*namespace xo*/
/* end */