FastLED 3.10.9
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 354 of file rpc.cpp.hpp.

354 {
355 fl::vector<fl::string> result;
356 for (auto it = mRegistry.begin(); it != mRegistry.end(); ++it) {
357 for (fl::size i = 0; i < it->second.mTags.size(); ++i) {
358 bool found = false;
359 for (fl::size j = 0; j < result.size(); ++j) {
360 if (result[j] == it->second.mTags[i]) {
361 found = true;
362 break;
363 }
364 }
365 if (!found) {
366 result.push_back(it->second.mTags[i]);
367 }
368 }
369 }
370 return result;
371}
fl::unordered_map< fl::string, detail::RpcEntry > mRegistry
Definition rpc.h:417
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: