FastLED 3.10.8
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 324 of file rpc.cpp.hpp.

324 {
325 fl::vector<fl::string> result;
326 for (auto it = mRegistry.begin(); it != mRegistry.end(); ++it) {
327 for (fl::size i = 0; i < it->second.mTags.size(); ++i) {
328 bool found = false;
329 for (fl::size j = 0; j < result.size(); ++j) {
330 if (result[j] == it->second.mTags[i]) {
331 found = true;
332 break;
333 }
334 }
335 if (!found) {
336 result.push_back(it->second.mTags[i]);
337 }
338 }
339 }
340 return result;
341}
fl::unordered_map< fl::string, detail::RpcEntry > mRegistry
Definition rpc.h:406
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References fl::FL_NO_EXCEPT, and mRegistry.

Referenced by registerMethod().

+ Here is the caller graph for this function: