Public Member Functions | |
CommandLineFlag * | FindFlagLocked (absl::string_view name) |
CommandLineFlag * | FindFlagViaPtrLocked (const void *flag_ptr) |
CommandLineFlag * | FindRetiredFlagLocked (absl::string_view name) |
FlagRegistry () | |
void | Lock () EXCLUSIVE_LOCK_FUNCTION(lock_) |
void | RegisterFlag (CommandLineFlag *flag, const void *ptr) |
void | Unlock () UNLOCK_FUNCTION(lock_) |
~FlagRegistry () | |
Static Public Member Functions | |
static FlagRegistry * | GlobalRegistry () |
Private Member Functions | |
FlagRegistry (const FlagRegistry &) | |
FlagRegistry & | operator= (const FlagRegistry &) |
Private Attributes | |
FlagPtrMap | flag_ptr_map_ |
FlagMap | flags_ |
absl::Mutex | lock_ |
Friends | |
class | FlagSaverImpl |
void | ForEachFlagUnlocked (std::function< void(CommandLineFlag *)> visitor) |
Definition at line 110 of file registry.cc.
absl::flags_internal::FlagRegistry::~FlagRegistry | ( | ) | [inline] |
Definition at line 113 of file registry.cc.
absl::flags_internal::FlagRegistry::FlagRegistry | ( | const FlagRegistry & | ) | [private] |
Definition at line 233 of file registry.cc.
CommandLineFlag * absl::flags_internal::FlagRegistry::FindFlagViaPtrLocked | ( | const void * | flag_ptr | ) |
Definition at line 256 of file registry.cc.
CommandLineFlag * absl::flags_internal::FlagRegistry::FindRetiredFlagLocked | ( | absl::string_view | name | ) |
Definition at line 247 of file registry.cc.
FlagRegistry * absl::flags_internal::FlagRegistry::GlobalRegistry | ( | ) | [static] |
Definition at line 160 of file registry.cc.
void absl::flags_internal::FlagRegistry::Lock | ( | ) | [inline] |
Definition at line 124 of file registry.cc.
FlagRegistry& absl::flags_internal::FlagRegistry::operator= | ( | const FlagRegistry & | ) | [private] |
void absl::flags_internal::FlagRegistry::RegisterFlag | ( | CommandLineFlag * | flag, |
const void * | ptr | ||
) |
Definition at line 178 of file registry.cc.
void absl::flags_internal::FlagRegistry::Unlock | ( | ) | [inline] |
Definition at line 125 of file registry.cc.
friend class FlagSaverImpl [friend] |
Definition at line 141 of file registry.cc.
void ForEachFlagUnlocked | ( | std::function< void(CommandLineFlag *)> | visitor | ) | [friend] |
Definition at line 451 of file registry.cc.
FlagPtrMap absl::flags_internal::FlagRegistry::flag_ptr_map_ [private] |
Definition at line 151 of file registry.cc.
FlagMap absl::flags_internal::FlagRegistry::flags_ [private] |
Definition at line 149 of file registry.cc.
Definition at line 153 of file registry.cc.