xo-reader2 stack: + ARuntimeContext.collector()
access Collector API (if present) from runtime context
This commit is contained in:
parent
8bc5f58259
commit
3220cb1b59
4 changed files with 19 additions and 0 deletions
|
|
@ -5,9 +5,11 @@
|
|||
|
||||
#include "DVsmRcx.hpp"
|
||||
#include "VirtualSchematikaMachine.hpp"
|
||||
#include <xo/facet/FacetRegistry.hpp>
|
||||
|
||||
namespace xo {
|
||||
using xo::mm::AAllocator;
|
||||
using xo::mm::ACollector;
|
||||
|
||||
namespace scm {
|
||||
|
||||
|
|
@ -19,6 +21,12 @@ namespace xo {
|
|||
return vsm_->allocator();
|
||||
}
|
||||
|
||||
obj<ACollector>
|
||||
DVsmRcx::collector() const noexcept
|
||||
{
|
||||
return vsm_->allocator().try_to_facet<ACollector>();
|
||||
}
|
||||
|
||||
obj<AAllocator>
|
||||
DVsmRcx::error_allocator() const noexcept
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue