MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / operator ==

Method operator ==

bt_editor/mainwindow.cpp:1319–1341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1317}
1318
1319bool MainWindow::SavedState::operator ==(const MainWindow::SavedState &other) const
1320{
1321 if( current_tab_name != other.current_tab_name ||
1322 json_states.size() != other.json_states.size())
1323 {
1324 return false;
1325 }
1326 for(auto& it: json_states )
1327 {
1328 auto other_it = other.json_states.find(it.first);
1329 if( other_it == other.json_states.end() ||
1330 it.second != other_it->second)
1331 {
1332 return false;
1333 }
1334 }
1335 if( view_area != other.view_area ||
1336 view_transform != other.view_transform)
1337 {
1338 return false;
1339 }
1340 return true;
1341}
1342
1343void MainWindow::onChangeNodesStatus(const QString& bt_name,
1344 const std::vector<std::pair<int, NodeStatus> > &node_status)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected