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

Method ensure_id_exists

cp-profiler/src/cpprofiler/tree/visual_flags.cpp:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6{
7
8void VisualFlags::ensure_id_exists(NodeID nid)
9{
10 const auto id = static_cast<int>(nid);
11 if (label_shown_.size() < id + 1)
12 {
13 label_shown_.resize(id + 1);
14 node_hidden_.resize(id + 1);
15 shape_highlighted_.resize(id + 1);
16 }
17}
18
19void VisualFlags::setLabelShown(NodeID nid, bool val)
20{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected