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

Method setTag

cp-profiler/src/cpprofiler/tree/node.cpp:19–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void Node::setTag(Tag tag)
20{
21 auto itag = static_cast<int>(tag);
22 m_childrenOrFirstChild = reinterpret_cast<void *>(
23 (reinterpret_cast<ptrdiff_t>(m_childrenOrFirstChild) & ~(3)) | itag);
24}
25
26NodeID *Node::getPtr() const
27{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected