Public Member Functions | |
CommandLineFlag * | FindFlagLocked (absl::string_view name) |
CommandLineFlag * | FindFlagViaPtrLocked (const void *flag_ptr) |
CommandLineFlag * | FindRetiredFlagLocked (absl::string_view name) |
FlagRegistry ()=default | |
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 Types | |
using | FlagConstIterator = FlagMap::const_iterator |
using | FlagIterator = FlagMap::iterator |
using | FlagMap = std::map< absl::string_view, CommandLineFlag * > |
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.
|
private |
Definition at line 148 of file registry.cc.
|
private |
Definition at line 147 of file registry.cc.
|
private |
Definition at line 146 of file registry.cc.
|
default |
|
inline |
Definition at line 113 of file registry.cc.
|
private |
CommandLineFlag * absl::flags_internal::FlagRegistry::FindFlagLocked | ( | absl::string_view | name | ) |
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.
|
static |
Definition at line 160 of file registry.cc.
|
inline |
Definition at line 124 of file registry.cc.
|
private |
void absl::flags_internal::FlagRegistry::RegisterFlag | ( | CommandLineFlag * | flag, |
const void * | ptr | ||
) |
Definition at line 178 of file registry.cc.
|
inline |
Definition at line 125 of file registry.cc.
|
friend |
Definition at line 141 of file registry.cc.
|
friend |
Definition at line 451 of file registry.cc.
|
private |
Definition at line 151 of file registry.cc.
|
private |
Definition at line 149 of file registry.cc.
|
private |
Definition at line 153 of file registry.cc.