MCPcopy Create free account
hub / github.com/SpartanJ/eepp / asyncMatchTree

Method asyncMatchTree

src/tools/ecode/projectdirectorytree.cpp:224–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void ProjectDirectoryTree::asyncMatchTree( MatchType type, const std::string& match,
225 const size_t& max, MatchResultCb res,
226 const std::string& basePath ) const {
227 mPool->run( [this, match, max, res, basePath, type]() {
228 std::shared_ptr<FileListModel> result;
229 switch ( type ) {
230 case MatchType::Substring:
231 result = matchTree( match, max, basePath );
232 break;
233 case MatchType::Fuzzy:
234 result = fuzzyMatchTree( match, max, basePath );
235 break;
236 case MatchType::Glob:
237 result = globMatchTree( match, max, basePath );
238 break;
239 }
240 res( result );
241 } );
242}
243
244std::shared_ptr<FileListModel>
245ProjectDirectoryTree::asModel( const size_t& max, const std::vector<CommandInfo>& prependCommands,

Callers 3

updateFilesTableMethod · 0.80
createContainerMethod · 0.80
showAttachFileMethod · 0.80

Calls 1

runMethod · 0.45

Tested by

no test coverage detected