Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | Friends
absl::flags_internal::CommandLineFlag Struct Reference

#include <commandlineflag.h>

List of all members.

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 &)
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 &)
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

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.


Member Function Documentation

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.

Definition at line 265 of file commandlineflag.cc.

Definition at line 261 of file commandlineflag.cc.

Definition at line 257 of file commandlineflag.cc.

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

Definition at line 248 of file commandlineflag.h.

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

Definition at line 225 of file commandlineflag.h.

Definition at line 229 of file commandlineflag.h.

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

Definition at line 241 of file commandlineflag.h.

Definition at line 226 of file commandlineflag.h.

Definition at line 227 of file commandlineflag.h.

Definition at line 224 of file commandlineflag.h.

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

Definition at line 182 of file commandlineflag.cc.

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

Definition at line 269 of file commandlineflag.cc.

Definition at line 322 of file commandlineflag.cc.

Definition at line 233 of file commandlineflag.cc.

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

friend class FlagRegistry [friend]

Definition at line 317 of file commandlineflag.h.


Member Data Documentation

Definition at line 297 of file commandlineflag.h.

Definition at line 289 of file commandlineflag.h.

Definition at line 292 of file commandlineflag.h.

Definition at line 291 of file commandlineflag.h.

Definition at line 290 of file commandlineflag.h.

Definition at line 276 of file commandlineflag.h.

Definition at line 275 of file commandlineflag.h.

Definition at line 283 of file commandlineflag.h.

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

Definition at line 296 of file commandlineflag.h.

Definition at line 303 of file commandlineflag.h.

Definition at line 281 of file commandlineflag.h.

Definition at line 280 of file commandlineflag.h.

Definition at line 286 of file commandlineflag.h.

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

Definition at line 274 of file commandlineflag.h.

Definition at line 287 of file commandlineflag.h.

Definition at line 279 of file commandlineflag.h.

Definition at line 282 of file commandlineflag.h.

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 Wed Jun 19 2019 19:42:16