refactor: + narrower interface for gc pointer forwarding
add AGCObjectVisitor, instead of requiring ACollector.
This commit is contained in:
parent
bf8c3628ff
commit
d740c94406
105 changed files with 260 additions and 416 deletions
|
|
@ -184,12 +184,6 @@ namespace xo {
|
|||
);
|
||||
}
|
||||
|
||||
std::size_t
|
||||
DSchematikaParser::shallow_size() const noexcept
|
||||
{
|
||||
return sizeof(DSchematikaParser);
|
||||
}
|
||||
|
||||
DSchematikaParser *
|
||||
DSchematikaParser::shallow_move(obj<ACollector> gc) noexcept
|
||||
{
|
||||
|
|
@ -202,12 +196,10 @@ namespace xo {
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
std::size_t
|
||||
DSchematikaParser::forward_children(obj<ACollector> gc) noexcept
|
||||
void
|
||||
DSchematikaParser::visit_gco_children(obj<AGCObjectVisitor> gc) noexcept
|
||||
{
|
||||
psm_.forward_children(gc);
|
||||
|
||||
return this->shallow_size();
|
||||
psm_.visit_gco_children(gc);
|
||||
}
|
||||
|
||||
} /*namespace scm*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue