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

◆ FlagConstIterator

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

Definition at line 148 of file registry.cc.

◆ FlagIterator

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

Definition at line 147 of file registry.cc.

◆ FlagMap

Definition at line 146 of file registry.cc.

Constructor & Destructor Documentation

◆ FlagRegistry() [1/2]

absl::flags_internal::FlagRegistry::FlagRegistry ( )
default

◆ ~FlagRegistry()

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

Definition at line 113 of file registry.cc.

◆ FlagRegistry() [2/2]

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

Member Function Documentation

◆ FindFlagLocked()

CommandLineFlag * absl::flags_internal::FlagRegistry::FindFlagLocked ( absl::string_view  name)

Definition at line 233 of file registry.cc.

◆ FindFlagViaPtrLocked()

CommandLineFlag * absl::flags_internal::FlagRegistry::FindFlagViaPtrLocked ( const void *  flag_ptr)

Definition at line 256 of file registry.cc.

◆ FindRetiredFlagLocked()

CommandLineFlag * absl::flags_internal::FlagRegistry::FindRetiredFlagLocked ( absl::string_view  name)

Definition at line 247 of file registry.cc.

◆ GlobalRegistry()

FlagRegistry * absl::flags_internal::FlagRegistry::GlobalRegistry ( )
static

Definition at line 160 of file registry.cc.

◆ Lock()

void absl::flags_internal::FlagRegistry::Lock ( )
inline

Definition at line 124 of file registry.cc.

◆ operator=()

FlagRegistry& absl::flags_internal::FlagRegistry::operator= ( const FlagRegistry )
private

◆ RegisterFlag()

void absl::flags_internal::FlagRegistry::RegisterFlag ( CommandLineFlag flag,
const void *  ptr 
)

Definition at line 178 of file registry.cc.

◆ Unlock()

void absl::flags_internal::FlagRegistry::Unlock ( )
inline

Definition at line 125 of file registry.cc.

Friends And Related Function Documentation

◆ FlagSaverImpl

friend class FlagSaverImpl
friend

Definition at line 141 of file registry.cc.

◆ ForEachFlagUnlocked

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

Definition at line 451 of file registry.cc.

Member Data Documentation

◆ flag_ptr_map_

FlagPtrMap absl::flags_internal::FlagRegistry::flag_ptr_map_
private

Definition at line 151 of file registry.cc.

◆ flags_

FlagMap absl::flags_internal::FlagRegistry::flags_
private

Definition at line 149 of file registry.cc.

◆ lock_

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 Mon Feb 28 2022 21:31:23