FastLED 3.9.15
Loading...
Searching...
No Matches

◆ tags()

fl::vector< fl::string > fl::Rpc::tags ( ) const

Returns list of unique tags used across all methods.

Definition at line 219 of file rpc.cpp.hpp.

219 {
220 fl::vector<fl::string> result;
221 for (auto it = mRegistry.begin(); it != mRegistry.end(); ++it) {
222 for (fl::size i = 0; i < it->second.mTags.size(); ++i) {
223 bool found = false;
224 for (fl::size j = 0; j < result.size(); ++j) {
225 if (result[j] == it->second.mTags[i]) {
226 found = true;
227 break;
228 }
229 }
230 if (!found) {
231 result.push_back(it->second.mTags[i]);
232 }
233 }
234 }
235 return result;
236}
fl::unordered_map< fl::string, detail::RpcEntry > mRegistry
Definition rpc.h:387
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References mRegistry.

Referenced by registerMethod().

+ Here is the caller graph for this function: