MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / Execution

Method Execution

cp-profiler/src/cpprofiler/execution.cpp:15–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13std::string Execution::name() { return name_; }
14
15Execution::Execution(const std::string &name, ExecID id, bool restarts)
16 : id_(id), name_{name}, tree_{new tree::NodeTree()},
17 solver_data_(utils::make_unique<SolverData>()),
18 user_data_(utils::make_unique<UserData>()), m_is_restarts(restarts)
19{
20 tree_->setSolverData(solver_data_);
21
22 /// need to create a dummy root node
23 if (restarts)
24 {
25 print("restart execution!");
26 tree_->createRoot(0, "root");
27 }
28}
29
30void Execution::setNameMap(std::shared_ptr<const NameMap> nm)
31{

Callers

nothing calls this directly

Calls 3

setSolverDataMethod · 0.80
printFunction · 0.50
createRootMethod · 0.45

Tested by

no test coverage detected