MCPcopy Create free account
hub / github.com/Soundux/Soundux / getTab

Method getTab

src/core/objects/data.cpp:73–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 return tabs;
72 }
73 std::optional<Tab> Data::getTab(const std::uint32_t &id) const
74 {
75 if (tabs.size() > id)
76 {
77 return tabs.at(id);
78 }
79
80 Fancy::fancy.logTime().warning() << "Tried to access non existent tab " << id << std::endl;
81 return std::nullopt;
82 }
83 std::optional<std::reference_wrapper<Sound>> Data::getSound(const std::uint32_t &id)
84 {
85 auto scopedSounds = Globals::gSounds.scoped();

Callers 6

onKeyDownMethod · 0.80
downloadMethod · 0.80
refreshTabMethod · 0.80
setSortModeMethod · 0.80
changeTabOrderMethod · 0.80
exposeFunctionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected