xo-gc: tidy: SetupGc.*pp -> setup_gc.*pp
This commit is contained in:
parent
2b9bde89b5
commit
b1155655d5
4 changed files with 2 additions and 64 deletions
|
|
@ -1,20 +0,0 @@
|
|||
/** @file SetupGc.hpp
|
||||
*
|
||||
* @author Roland Conybeare, Mar 2026
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace xo {
|
||||
namespace mm {
|
||||
|
||||
class SetupGc {
|
||||
public:
|
||||
/** Register gc (facet,impl) combinations with FacetRegistry **/
|
||||
static bool register_facets();
|
||||
};
|
||||
|
||||
} /*namespace mm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end SetupGc.hpp */
|
||||
|
|
@ -4,7 +4,7 @@ set(SELF_LIB xo_gc)
|
|||
set(SELF_SRCS
|
||||
|
||||
init_gc.cpp
|
||||
SetupGc.cpp
|
||||
setup_gc.cpp
|
||||
|
||||
IAllocator_DX1Collector.cpp
|
||||
IAllocIterator_DX1CollectorIterator.cpp
|
||||
|
|
|
|||
|
|
@ -1,42 +0,0 @@
|
|||
/** @file SetupGc.cpp
|
||||
*
|
||||
* @author Roland Conybeare, Mar 2026
|
||||
**/
|
||||
|
||||
#include "SetupGc.hpp"
|
||||
#include "X1Collector.hpp"
|
||||
#include "GCObjectStoreVisitor.hpp"
|
||||
#include <xo/facet/FacetRegistry.hpp>
|
||||
#include <xo/indentlog/scope.hpp>
|
||||
|
||||
namespace xo {
|
||||
using xo::mm::AAllocator;
|
||||
using xo::mm::ACollector;
|
||||
using xo::mm::DX1Collector;
|
||||
using xo::facet::FacetRegistry;
|
||||
using xo::reflect::typeseq;
|
||||
|
||||
namespace mm {
|
||||
|
||||
bool
|
||||
SetupGc::register_facets()
|
||||
{
|
||||
scope log(XO_DEBUG(true));
|
||||
|
||||
FacetRegistry::register_impl<AAllocator, DX1Collector>();
|
||||
FacetRegistry::register_impl<ACollector, DX1Collector>();
|
||||
|
||||
FacetRegistry::register_impl<AGCObjectVisitor, DGCObjectStoreVisitor>();
|
||||
|
||||
log && log(xtag("DX1Collector.tseq", typeseq::id<DX1Collector>()));
|
||||
log && log(xtag("DGCObjectStoreVisitor.tseq", typeseq::id<DGCObjectStoreVisitor>()));
|
||||
|
||||
log && log(xtag("ACollector.tseq", typeseq::id<ACollector>()));
|
||||
log && log(xtag("AGCObjectVisitor.tseq", typeseq::id<AGCObjectVisitor>()));
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end SetupGc.cpp */
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
**/
|
||||
|
||||
#include "init_gc.hpp"
|
||||
#include "SetupGc.hpp"
|
||||
#include "setup_gc.hpp"
|
||||
#include <xo/object2/init_object2.hpp>
|
||||
#include <xo/alloc2/init_alloc2.hpp>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue