MCPcopy Create free account
hub / github.com/Nelarius/imnodes / ClearObjectSelection

Function ClearObjectSelection

imnodes.cpp:1897–1906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1895
1896template<typename T>
1897void ClearObjectSelection(
1898 const ImObjectPool<T>& objects,
1899 ImVector<int>& selected_indices,
1900 const int id)
1901{
1902 const int idx = ObjectPoolFind(objects, id);
1903 assert(idx >= 0);
1904 assert(selected_indices.find(idx) != selected_indices.end());
1905 selected_indices.find_erase_unsorted(idx);
1906}
1907
1908template<typename T>
1909bool IsObjectSelected(const ImObjectPool<T>& objects, ImVector<int>& selected_indices, const int id)

Callers 2

ClearNodeSelectionFunction · 0.85
ClearLinkSelectionFunction · 0.85

Calls 3

ObjectPoolFindFunction · 0.85
findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected