MCPcopy Create free account
hub / github.com/colmap/colmap / Callback

Method Callback

src/colmap/util/base_controller.cc:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void BaseController::Callback(const int id) const {
49 CHECK_GT(callbacks_.count(id), 0) << "Callback not registered";
50 for (const auto& callback : callbacks_.at(id)) {
51 callback();
52 }
53}
54
55void BaseController::SetCheckIfStoppedFunc(std::function<bool()> func) {
56 check_if_stopped_fn_ = std::move(func);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected