MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / Find

Method Find

src/gui/filesystemmodel.cc:183–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 }
182
183 std::shared_ptr<FilesystemNode> Find(const Path& path) const override
184 {
185 if (path.empty())
186 return _root;
187
188 auto node = _root;
189 for (const auto& element : path)
190 {
191 try
192 {
193 node = node->children.at(element);
194 }
195 catch (std::out_of_range& e)
196 {
197 return nullptr;
198 }
199 }
200
201 return node;
202 }
203
204 std::shared_ptr<FilesystemNode> Find(
205 const wxDataViewItem& item) const override

Callers 10

RepopulateBrowserMethod · 0.80
OnBrowserInfoButtonMethod · 0.80
OnBrowserViewButtonMethod · 0.80
OnBrowserSaveButtonMethod · 0.80
OnBrowserBeginDragMethod · 0.80

Calls 4

emptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected