MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / model_index_of

Method model_index_of

src/host/ui/ui_state.cpp:101–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101std::optional<std::size_t>
102UiState::model_index_of(std::string_view variable_name) const {
103 for (std::size_t i = 0; i < model_.size(); ++i) {
104 if (model_.variable_name_of(i) == variable_name) {
105 return i;
106 }
107 }
108 return std::nullopt;
109}
110
111bool UiState::contrast_enabled() const {
112 return contrast_;

Callers 2

mainFunction · 0.80
commit_symbolFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected