MCPcopy Create free account
hub / github.com/Lwhyz/workspace / attach

Method attach

include/workspace/workspace.hpp:109–114  ·  view source on GitHub ↗

* @brief attach a workbranch * @param br ptr (heap memory) * @return id * @note O(1) */

Source from the content-addressed store, hash-verified

107 * @note O(1)
108 */
109 bid attach(workbranch* br) {
110 assert(br != nullptr);
111 branches.emplace_back(br);
112 cur = branches.begin(); // reset cursor
113 return bid(br);
114 }
115 /**
116 * @brief attach a supervisor
117 * @param sp ptr (heap memory)

Callers 9

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
benchFunction · 0.80
benchFunction · 0.80

Calls 3

bidClass · 0.85
sidClass · 0.85
beginMethod · 0.80

Tested by 2

mainFunction · 0.64
mainFunction · 0.64