Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | Friends | List of all members
absl::flags_internal::CommandLineFlag Struct Reference

#include <commandlineflag.h>

Public Member Functions

 ABSL_DEPRECATED ("temporary until FlagName call sites are migrated and validator API is " "changed") const char *NameAsCString() const
 
constexpr CommandLineFlag (const char *name_arg, HelpText help_text, const char *filename_arg, const flags_internal::FlagOpFn op_arg, const flags_internal::FlagMarshallingOpFn marshalling_op_arg, const flags_internal::InitialValGenFunc initial_value_gen, const bool retired_arg, void *def_arg, void *cur_arg)
 
 CommandLineFlag (const CommandLineFlag &)=delete
 
std::string CurrentValue () const
 
std::string DefaultValue () const
 
std::string Filename () const
 
template<typename T >
absl::optional< T > Get ()
 
std::string Help () const
 
bool IsAbseilFlag () const
 
template<typename T >
bool IsOfType () const
 
bool IsRetired () const
 
bool IsSpecifiedOnCommandLine () const
 
absl::string_view Name () const
 
CommandLineFlagoperator= (const CommandLineFlag &)=delete
 
void Read (void *dst, const flags_internal::FlagOpFn dst_op) const
 
void SetCallback (const flags_internal::FlagCallback mutation_callback)
 
bool SetFromString (absl::string_view value, flags_internal::FlagSettingMode set_mode, flags_internal::ValueSource source, std::string *error)
 
absl::string_view Typename () const
 
void Write (const void *src, const flags_internal::FlagOpFn src_op)
 

Public Attributes

std::atomic< int64_t > atomic
 
FlagCallback callback
 
int64_t counter
 
void * cur
 
void * def
 
std::atomic< bool > inited
 
struct CommandLineFlagLockslocks
 
const InitialValGenFunc make_init_value
 
const FlagMarshallingOpFn marshalling_op
 
bool modified
 
bool on_command_line
 
const FlagOpFn op
 
const bool retired
 
bool(* validator )()
 

Static Public Attributes

static const int64_t kAtomicInit = 0xababababababababll
 

Private Attributes

const char *const filename
 
const HelpText help
 
const char *const name
 

Friends

class FlagRegistry
 

Detailed Description

Definition at line 195 of file commandlineflag.h.

Constructor & Destructor Documentation

◆ CommandLineFlag() [1/2]

constexpr absl::flags_internal::CommandLineFlag::CommandLineFlag ( const char *  name_arg,
HelpText  help_text,
const char *  filename_arg,
const flags_internal::FlagOpFn  op_arg,
const flags_internal::FlagMarshallingOpFn  marshalling_op_arg,
const flags_internal::InitialValGenFunc  initial_value_gen,
const bool  retired_arg,
void *  def_arg,
void *  cur_arg 
)
inline

Definition at line 196 of file commandlineflag.h.

◆ CommandLineFlag() [2/2]

absl::flags_internal::CommandLineFlag::CommandLineFlag ( const CommandLineFlag )
delete

Member Function Documentation

◆ ABSL_DEPRECATED()

absl::flags_internal::CommandLineFlag::ABSL_DEPRECATED ( "temporary until FlagName call sites are migrated and validator API is " "changed"  ) const
inline

Definition at line 311 of file commandlineflag.h.

◆ CurrentValue()

std::string absl::flags_internal::CommandLineFlag::CurrentValue ( ) const

Definition at line 265 of file commandlineflag.cc.

◆ DefaultValue()

std::string absl::flags_internal::CommandLineFlag::DefaultValue ( ) const

Definition at line 261 of file commandlineflag.cc.

◆ Filename()

std::string absl::flags_internal::CommandLineFlag::Filename ( ) const

Definition at line 257 of file commandlineflag.cc.

◆ Get()

template<typename T >
absl::optional<T> absl::flags_internal::CommandLineFlag::Get ( )
inline

Definition at line 248 of file commandlineflag.h.

◆ Help()

std::string absl::flags_internal::CommandLineFlag::Help ( ) const
inline

Definition at line 225 of file commandlineflag.h.

◆ IsAbseilFlag()

bool absl::flags_internal::CommandLineFlag::IsAbseilFlag ( ) const
inline

Definition at line 229 of file commandlineflag.h.

◆ IsOfType()

template<typename T >
bool absl::flags_internal::CommandLineFlag::IsOfType ( ) const
inline

Definition at line 241 of file commandlineflag.h.

◆ IsRetired()

bool absl::flags_internal::CommandLineFlag::IsRetired ( ) const
inline

Definition at line 226 of file commandlineflag.h.

◆ IsSpecifiedOnCommandLine()

bool absl::flags_internal::CommandLineFlag::IsSpecifiedOnCommandLine ( ) const
inline

Definition at line 227 of file commandlineflag.h.

◆ Name()

absl::string_view absl::flags_internal::CommandLineFlag::Name ( ) const
inline

Definition at line 224 of file commandlineflag.h.

◆ operator=()

CommandLineFlag& absl::flags_internal::CommandLineFlag::operator= ( const CommandLineFlag )
delete

◆ Read()

void absl::flags_internal::CommandLineFlag::Read ( void *  dst,
const flags_internal::FlagOpFn  dst_op 
) const

Definition at line 182 of file commandlineflag.cc.

◆ SetCallback()

void absl::flags_internal::CommandLineFlag::SetCallback ( const flags_internal::FlagCallback  mutation_callback)

Definition at line 269 of file commandlineflag.cc.

◆ SetFromString()

bool absl::flags_internal::CommandLineFlag::SetFromString ( absl::string_view  value,
flags_internal::FlagSettingMode  set_mode,
flags_internal::ValueSource  source,
std::string *  error 
)

Definition at line 322 of file commandlineflag.cc.

◆ Typename()

absl::string_view absl::flags_internal::CommandLineFlag::Typename ( ) const

Definition at line 233 of file commandlineflag.cc.

◆ Write()

void absl::flags_internal::CommandLineFlag::Write ( const void *  src,
const flags_internal::FlagOpFn  src_op 
)

Definition at line 199 of file commandlineflag.cc.

Friends And Related Function Documentation

◆ FlagRegistry

friend class FlagRegistry
friend

Definition at line 317 of file commandlineflag.h.

Member Data Documentation

◆ atomic

std::atomic<int64_t> absl::flags_internal::CommandLineFlag::atomic

Definition at line 297 of file commandlineflag.h.

◆ callback

FlagCallback absl::flags_internal::CommandLineFlag::callback

Definition at line 289 of file commandlineflag.h.

◆ counter

int64_t absl::flags_internal::CommandLineFlag::counter

Definition at line 292 of file commandlineflag.h.

◆ cur

void* absl::flags_internal::CommandLineFlag::cur

Definition at line 291 of file commandlineflag.h.

◆ def

void* absl::flags_internal::CommandLineFlag::def

Definition at line 290 of file commandlineflag.h.

◆ filename

const char* const absl::flags_internal::CommandLineFlag::filename
private

Definition at line 276 of file commandlineflag.h.

◆ help

const HelpText absl::flags_internal::CommandLineFlag::help
private

Definition at line 275 of file commandlineflag.h.

◆ inited

std::atomic<bool> absl::flags_internal::CommandLineFlag::inited

Definition at line 283 of file commandlineflag.h.

◆ kAtomicInit

const int64_t absl::flags_internal::CommandLineFlag::kAtomicInit = 0xababababababababll
static

Definition at line 296 of file commandlineflag.h.

◆ locks

struct CommandLineFlagLocks* absl::flags_internal::CommandLineFlag::locks

Definition at line 303 of file commandlineflag.h.

◆ make_init_value

const InitialValGenFunc absl::flags_internal::CommandLineFlag::make_init_value

Definition at line 281 of file commandlineflag.h.

◆ marshalling_op

const FlagMarshallingOpFn absl::flags_internal::CommandLineFlag::marshalling_op

Definition at line 280 of file commandlineflag.h.

◆ modified

bool absl::flags_internal::CommandLineFlag::modified

Definition at line 286 of file commandlineflag.h.

◆ name

const char* const absl::flags_internal::CommandLineFlag::name
private

Definition at line 274 of file commandlineflag.h.

◆ on_command_line

bool absl::flags_internal::CommandLineFlag::on_command_line

Definition at line 287 of file commandlineflag.h.

◆ op

const FlagOpFn absl::flags_internal::CommandLineFlag::op

Definition at line 279 of file commandlineflag.h.

◆ retired

const bool absl::flags_internal::CommandLineFlag::retired

Definition at line 282 of file commandlineflag.h.

◆ validator

bool(* absl::flags_internal::CommandLineFlag::validator) ()

Definition at line 288 of file commandlineflag.h.


The documentation for this struct was generated from the following files:


abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:23