mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
CostFunctionCout.cpp
Go to the documentation of this file.
2
4
5
6using namespace m;
7
8
9__attribute__((constructor(202)))
10static void register_cost_function()
11{
12 Catalog &C = Catalog::Get();
14 C.pool("CostFunctionCout"),
15 std::make_unique<CostFunctionCout>(),
16 "implementation of cost function C_out from Sophie Cluet and Guido Moerkotte"
17 );
18}
__attribute__((constructor(202))) static void register_cost_function()
‍mutable namespace
Definition: Backend.hpp:10
The catalog contains all Databases and keeps track of all meta information of the database system.
Definition: Catalog.hpp:215
ThreadSafePooledString pool(const char *str) const
Creates an internalized copy of the string str by adding it to the internal StringPool.
Definition: Catalog.hpp:274
static Catalog & Get()
Return a reference to the single Catalog instance.
void register_cost_function(ThreadSafePooledString name, std::unique_ptr< CostFunction > CF, const char *description=nullptr)
Registers a new CostFunction with the given name.
Definition: Catalog.hpp:492