Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
absl::flags_internal::FlagRegistry Class Reference

Public Member Functions

CommandLineFlagFindFlagLocked (absl::string_view name)
 
CommandLineFlagFindFlagViaPtrLocked (const void *flag_ptr)
 
CommandLineFlagFindRetiredFlagLocked (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 FlagRegistryGlobalRegistry ()
 

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 &)
 
FlagRegistryoperator= (const FlagRegistry &)
 

Private Attributes

FlagPtrMap flag_ptr_map_
 
FlagMap flags_
 
absl::Mutex lock_
 

Friends

class FlagSaverImpl
 
void ForEachFlagUnlocked (std::function< void(CommandLineFlag *)> visitor)
 

Detailed Description

Definition at line 110 of file registry.cc.

Member Typedef Documentation

using absl::flags_internal::FlagRegistry::FlagConstIterator = FlagMap::const_iterator
private

Definition at line 148 of file registry.cc.

using absl::flags_internal::FlagRegistry::FlagIterator = FlagMap::iterator
private

Definition at line 147 of file registry.cc.

Definition at line 146 of file registry.cc.

Constructor & Destructor Documentation

absl::flags_internal::FlagRegistry::FlagRegistry ( )
default
absl::flags_internal::FlagRegistry::~FlagRegistry ( )
inline

Definition at line 113 of file registry.cc.

absl::flags_internal::FlagRegistry::FlagRegistry ( const FlagRegistry )
private

Member Function Documentation

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.

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.

Friends And Related Function Documentation

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.

Member Data Documentation

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.

absl::Mutex absl::flags_internal::FlagRegistry::lock_
private

Definition at line 153 of file registry.cc.


The documentation for this class was generated from the following file:


abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:19:59