Lines Matching refs:CommandLineFlag
52 void RegisterFlag(CommandLineFlag& flag);
59 CommandLineFlag* FindFlagLocked(absl::string_view name);
67 std::function<void(CommandLineFlag&)> visitor);
70 using FlagMap = std::map<absl::string_view, CommandLineFlag*>;
82 CommandLineFlag* FlagRegistry::FindFlagLocked(absl::string_view name) { in FindFlagLocked()
104 void FlagRegistry::RegisterFlag(CommandLineFlag& flag) { in RegisterFlag()
109 CommandLineFlag& old_flag = *ins.first->second; in RegisterFlag()
155 void ForEachFlagUnlocked(std::function<void(CommandLineFlag&)> visitor) { in ForEachFlagUnlocked()
163 void ForEachFlag(std::function<void(CommandLineFlag&)> visitor) { in ForEachFlag()
171 bool RegisterCommandLineFlag(CommandLineFlag& flag) { in RegisterCommandLineFlag()
180 class RetiredFlagObj final : public CommandLineFlag {
262 flags_internal::ForEachFlag([&](CommandLineFlag& flag) { in SaveFromRegistry()
297 CommandLineFlag* FindCommandLineFlag(absl::string_view name) { in FindCommandLineFlag()
308 absl::flat_hash_map<absl::string_view, absl::CommandLineFlag*> GetAllFlags() { in GetAllFlags()
309 absl::flat_hash_map<absl::string_view, absl::CommandLineFlag*> res; in GetAllFlags()
310 flags_internal::ForEachFlag([&](CommandLineFlag& flag) { in GetAllFlags()