Classes | |
struct | CommandLineFlag |
struct | CommandLineFlagInfo |
struct | CommandLineFlagLocks |
struct | EmptyBraces |
struct | FilenameFlagnameLess |
class | Flag |
class | FlagRegistrar |
class | FlagRegistry |
class | FlagSaver |
class | FlagSaverImpl |
struct | GlobalStringADLGuard |
class | HelpText |
Enumerations | |
enum | ArgvListAction { kRemoveParsedArgs, kKeepParsedArgs } |
enum | FlagOp { kDelete, kClone, kCopy, kCopyConstruct, kSizeof, kParse, kUnparse } |
enum | FlagSettingMode { SET_FLAGS_VALUE, SET_FLAG_IF_DEFAULT, SET_FLAGS_DEFAULT } |
enum | HelpFormat { kHumanReadable } |
enum | OnUndefinedFlag { kIgnoreUndefined, kReportUndefined, kAbortIfUndefined } |
enum | UsageFlagsAction { kHandleUsage, kIgnoreUsage } |
enum | ValueSource { kCommandLine, kProgrammaticChange } |
Functions | |
bool | AbslParseFlag (absl::string_view text, bool *dst, std::string *) |
bool | AbslParseFlag (absl::string_view text, short *dst, std::string *) |
bool | AbslParseFlag (absl::string_view text, unsigned short *dst, std::string *) |
bool | AbslParseFlag (absl::string_view text, int *dst, std::string *) |
bool | AbslParseFlag (absl::string_view text, unsigned int *dst, std::string *) |
bool | AbslParseFlag (absl::string_view text, long *dst, std::string *) |
bool | AbslParseFlag (absl::string_view text, unsigned long *dst, std::string *) |
bool | AbslParseFlag (absl::string_view text, long long *dst, std::string *) |
bool | AbslParseFlag (absl::string_view text, unsigned long long *dst, std::string *) |
bool | AbslParseFlag (absl::string_view text, float *dst, std::string *) |
bool | AbslParseFlag (absl::string_view text, double *dst, std::string *) |
bool | AbslParseFlag (absl::string_view text, std::string *dst, std::string *) |
bool | AbslParseFlag (absl::string_view text, std::vector< std::string > *dst, std::string *) |
std::string | AbslUnparseFlag (absl::string_view v) |
std::string | AbslUnparseFlag (const std::vector< std::string > &v) |
absl::string_view | Basename (absl::string_view filename) |
bool | ChangedDirectly (CommandLineFlag *flag, const void *a, const void *b) |
void * | Clone (FlagOpFn op, const void *obj) |
void | Copy (FlagOpFn op, const void *src, void *dst) |
void | CopyConstruct (FlagOpFn op, const void *src, void *dst) |
void | Delete (FlagOpFn op, const void *obj) |
void | FillCommandLineFlagInfo (CommandLineFlag *flag, CommandLineFlagInfo *result) |
CommandLineFlag * | FindCommandLineFlag (absl::string_view name) |
CommandLineFlag * | FindCommandLineV1Flag (const void *flag_ptr) |
CommandLineFlag * | FindRetiredFlag (absl::string_view name) |
void | FlagHelp (std::ostream &out, const flags_internal::CommandLineFlag &flag, HelpFormat format) |
template<typename T > | |
void * | FlagMarshallingOps (FlagOp op, const void *v1, void *v2, void *v3) |
template<typename T > | |
void * | FlagOps (FlagOp op, const void *v1, void *v2) |
void | FlagsHelp (std::ostream &out, absl::string_view filter={}, HelpFormat format=HelpFormat::kHumanReadable) |
void | FlagsHelp (std::ostream &out, absl::string_view filter, HelpFormat format) |
void | ForEachFlag (std::function< void(CommandLineFlag *)> visitor) |
void | ForEachFlagUnlocked (std::function< void(CommandLineFlag *)> visitor) |
void | GetAllFlags (std::vector< CommandLineFlagInfo > *OUTPUT) |
template<typename T > | |
bool | GetByName (absl::string_view name, T *dst) |
bool | GetCommandLineFlagInfo (absl::string_view name, CommandLineFlagInfo *OUTPUT) |
CommandLineFlagInfo | GetCommandLineFlagInfoOrDie (absl::string_view name) |
bool | GetCommandLineOption (absl::string_view name, std::string *value) |
FlagsUsageConfig | GetUsageConfig () |
static ABSL_CONST_INIT std::string *program_name | GUARDED_BY (program_name_guard) |
int | HandleUsageFlags (std::ostream &out) |
absl::Mutex * | InitFlagIfNecessary (CommandLineFlag *flag) LOCK_RETURNED(flag->locks->primary_mu) |
template<typename T > | |
bool | InvokeParseFlag (absl::string_view input, T *dst, std::string *err) |
bool | IsRetiredFlag (absl::string_view name, bool *type_is_bool) |
bool | IsValidFlagValue (absl::string_view name, absl::string_view value) |
template<typename T > | |
T * | MakeFromDefaultValue (T t) |
template<typename T > | |
T * | MakeFromDefaultValue (EmptyBraces) |
static int | NumericBase (absl::string_view text) |
absl::string_view | Package (absl::string_view filename) |
bool | Parse (FlagMarshallingOpFn op, absl::string_view text, void *dst, std::string *error) |
std::vector< char * > | ParseCommandLineImpl (int argc, char *argv[], ArgvListAction arg_list_act, UsageFlagsAction usage_flag_act, OnUndefinedFlag on_undef_flag) |
template<typename IntType > | |
bool | ParseFlagImpl (absl::string_view text, IntType *dst) |
static ABSL_CONST_INIT absl::Mutex | program_name_guard (absl::kConstInit) |
std::string | ProgramInvocationName () |
absl::string_view | ProgramUsageMessage () |
bool | RegisterCommandLineFlag (CommandLineFlag *flag, const void *ptr) |
void | ReportUsageError (absl::string_view msg, bool is_fatal) |
bool | Retire (FlagOpFn ops, FlagMarshallingOpFn marshalling_ops, const char *name) |
template<typename T > | |
bool | RetiredFlag (const char *flag_name) |
bool | SetCommandLineOption (absl::string_view name, absl::string_view value) |
bool | SetCommandLineOptionWithMode (absl::string_view name, absl::string_view value, FlagSettingMode set_mode) |
void | SetProgramInvocationName (absl::string_view prog_name_str) |
void | SetProgramUsageMessage (absl::string_view new_usage_message) |
std::string | ShortProgramInvocationName () |
size_t | Sizeof (FlagOpFn op) |
bool | SpecifiedOnCommandLine (absl::string_view name) |
static bool | TryParseLocked (CommandLineFlag *flag, void *dst, absl::string_view value, std::string *err) |
std::string | Unparse (FlagMarshallingOpFn op, const void *val) |
std::string | Unparse (bool v) |
std::string | Unparse (short v) |
std::string | Unparse (unsigned short v) |
std::string | Unparse (int v) |
std::string | Unparse (unsigned int v) |
std::string | Unparse (long v) |
std::string | Unparse (unsigned long v) |
std::string | Unparse (long long v) |
std::string | Unparse (unsigned long long v) |
std::string | Unparse (float v) |
std::string | Unparse (double v) |
template<typename T > | |
std::string | Unparse (const T &v) |
template<typename T > | |
std::string | UnparseFloatingPointVal (T v) |
void | UpdateCopy (CommandLineFlag *flag, absl::Mutex *primary_lock) EXCLUSIVE_LOCKS_REQUIRED(primary_lock) |
void | UpdateModifiedBit (CommandLineFlag *flag) |
bool | Validate (CommandLineFlag *, const void *) |
Variables | |
const char | kStrippedFlagHelp [] = "\001\002\003\004 (unknown) \004\003\002\001" |
Definition at line 32 of file internal/parse.h.
Definition at line 31 of file commandlineflag.h.
Definition at line 44 of file commandlineflag.h.
Definition at line 34 of file internal/parse.h.
Definition at line 33 of file internal/parse.h.
Definition at line 57 of file commandlineflag.h.
bool absl::flags_internal::AbslParseFlag | ( | absl::string_view | text, |
bool * | dst, | ||
std::string * | |||
) |
Definition at line 34 of file marshalling.cc.
bool absl::flags_internal::AbslParseFlag | ( | absl::string_view | text, |
short * | dst, | ||
std::string * | |||
) |
Definition at line 72 of file marshalling.cc.
bool absl::flags_internal::AbslParseFlag | ( | absl::string_view | text, |
unsigned short * | dst, | ||
std::string * | |||
) |
Definition at line 81 of file marshalling.cc.
bool absl::flags_internal::AbslParseFlag | ( | absl::string_view | text, |
int * | dst, | ||
std::string * | |||
) |
Definition at line 91 of file marshalling.cc.
bool absl::flags_internal::AbslParseFlag | ( | absl::string_view | text, |
unsigned int * | dst, | ||
std::string * | |||
) |
Definition at line 95 of file marshalling.cc.
bool absl::flags_internal::AbslParseFlag | ( | absl::string_view | text, |
long * | dst, | ||
std::string * | |||
) |
Definition at line 99 of file marshalling.cc.
bool absl::flags_internal::AbslParseFlag | ( | absl::string_view | text, |
unsigned long * | dst, | ||
std::string * | |||
) |
Definition at line 103 of file marshalling.cc.
bool absl::flags_internal::AbslParseFlag | ( | absl::string_view | text, |
long long * | dst, | ||
std::string * | |||
) |
Definition at line 107 of file marshalling.cc.
bool absl::flags_internal::AbslParseFlag | ( | absl::string_view | text, |
unsigned long long * | dst, | ||
std::string * | |||
) |
Definition at line 111 of file marshalling.cc.
bool absl::flags_internal::AbslParseFlag | ( | absl::string_view | text, |
float * | dst, | ||
std::string * | |||
) |
Definition at line 119 of file marshalling.cc.
bool absl::flags_internal::AbslParseFlag | ( | absl::string_view | text, |
double * | dst, | ||
std::string * | |||
) |
Definition at line 123 of file marshalling.cc.
bool absl::flags_internal::AbslParseFlag | ( | absl::string_view | text, |
std::string * | dst, | ||
std::string * | |||
) |
Definition at line 130 of file marshalling.cc.
bool absl::flags_internal::AbslParseFlag | ( | absl::string_view | text, |
std::vector< std::string > * | dst, | ||
std::string * | |||
) |
Definition at line 138 of file marshalling.cc.
std::string absl::flags_internal::AbslUnparseFlag | ( | absl::string_view | v | ) |
Definition at line 183 of file marshalling.cc.
std::string absl::flags_internal::AbslUnparseFlag | ( | const std::vector< std::string > & | v | ) |
Definition at line 184 of file marshalling.cc.
absl::string_view absl::flags_internal::Basename | ( | absl::string_view | filename | ) | [inline] |
Definition at line 33 of file path_util.h.
bool absl::flags_internal::ChangedDirectly | ( | CommandLineFlag * | flag, |
const void * | a, | ||
const void * | b | ||
) |
Definition at line 139 of file commandlineflag.cc.
void* absl::flags_internal::Clone | ( | FlagOpFn | op, |
const void * | obj | ||
) | [inline] |
Definition at line 129 of file commandlineflag.h.
void absl::flags_internal::Copy | ( | FlagOpFn | op, |
const void * | src, | ||
void * | dst | ||
) | [inline] |
Definition at line 133 of file commandlineflag.h.
void absl::flags_internal::CopyConstruct | ( | FlagOpFn | op, |
const void * | src, | ||
void * | dst | ||
) | [inline] |
Definition at line 137 of file commandlineflag.h.
void absl::flags_internal::Delete | ( | FlagOpFn | op, |
const void * | obj | ||
) | [inline] |
Definition at line 125 of file commandlineflag.h.
void absl::flags_internal::FillCommandLineFlagInfo | ( | CommandLineFlag * | flag, |
CommandLineFlagInfo * | result | ||
) |
Definition at line 408 of file registry.cc.
Definition at line 427 of file registry.cc.
CommandLineFlag * absl::flags_internal::FindCommandLineV1Flag | ( | const void * | flag_ptr | ) |
Definition at line 435 of file registry.cc.
Definition at line 442 of file registry.cc.
void absl::flags_internal::FlagHelp | ( | std::ostream & | out, |
const flags_internal::CommandLineFlag & | flag, | ||
HelpFormat | format | ||
) |
void* absl::flags_internal::FlagMarshallingOps | ( | FlagOp | op, |
const void * | v1, | ||
void * | v2, | ||
void * | v3 | ||
) |
Definition at line 102 of file commandlineflag.h.
void* absl::flags_internal::FlagOps | ( | FlagOp | op, |
const void * | v1, | ||
void * | v2 | ||
) |
Definition at line 81 of file commandlineflag.h.
void absl::flags_internal::FlagsHelp | ( | std::ostream & | out | ) |
void absl::flags_internal::FlagsHelp | ( | std::ostream & | out, |
absl::string_view | filter, | ||
HelpFormat | format | ||
) |
void absl::flags_internal::ForEachFlag | ( | std::function< void(CommandLineFlag *)> | visitor | ) |
Definition at line 459 of file registry.cc.
void absl::flags_internal::ForEachFlagUnlocked | ( | std::function< void(CommandLineFlag *)> | visitor | ) |
Definition at line 451 of file registry.cc.
void absl::flags_internal::GetAllFlags | ( | std::vector< CommandLineFlagInfo > * | OUTPUT | ) |
Definition at line 467 of file registry.cc.
bool absl::flags_internal::GetByName | ( | absl::string_view | name, |
T * | dst | ||
) | [inline] |
Definition at line 82 of file type_erased.h.
bool absl::flags_internal::GetCommandLineFlagInfo | ( | absl::string_view | name, |
CommandLineFlagInfo * | OUTPUT | ||
) |
Definition at line 40 of file type_erased.cc.
Definition at line 54 of file type_erased.cc.
bool absl::flags_internal::GetCommandLineOption | ( | absl::string_view | name, |
std::string * | value | ||
) |
Definition at line 26 of file type_erased.cc.
Definition at line 101 of file usage_config.cc.
static ABSL_CONST_INIT std::string* program_name absl::flags_internal::GUARDED_BY | ( | program_name_guard | ) | [static] |
int absl::flags_internal::HandleUsageFlags | ( | std::ostream & | out | ) |
absl::Mutex * absl::flags_internal::InitFlagIfNecessary | ( | CommandLineFlag * | flag | ) |
Definition at line 111 of file commandlineflag.cc.
bool absl::flags_internal::InvokeParseFlag | ( | absl::string_view | input, |
T * | dst, | ||
std::string * | err | ||
) |
Definition at line 195 of file marshalling.h.
bool absl::flags_internal::IsRetiredFlag | ( | absl::string_view | name, |
bool * | type_is_bool | ||
) |
Definition at line 503 of file registry.cc.
bool absl::flags_internal::IsValidFlagValue | ( | absl::string_view | name, |
absl::string_view | value | ||
) |
Definition at line 89 of file type_erased.cc.
T* absl::flags_internal::MakeFromDefaultValue | ( | T | t | ) |
Definition at line 91 of file internal/flag.h.
T* absl::flags_internal::MakeFromDefaultValue | ( | EmptyBraces | ) |
Definition at line 96 of file internal/flag.h.
static int absl::flags_internal::NumericBase | ( | absl::string_view | text | ) | [static] |
Definition at line 59 of file marshalling.cc.
absl::string_view absl::flags_internal::Package | ( | absl::string_view | filename | ) | [inline] |
Definition at line 49 of file path_util.h.
bool absl::flags_internal::Parse | ( | FlagMarshallingOpFn | op, |
absl::string_view | text, | ||
void * | dst, | ||
std::string * | error | ||
) | [inline] |
Definition at line 141 of file commandlineflag.h.
std::vector< char * > absl::flags_internal::ParseCommandLineImpl | ( | int | argc, |
char * | argv[], | ||
ArgvListAction | arg_list_act, | ||
UsageFlagsAction | usage_flag_act, | ||
OnUndefinedFlag | on_undef_flag | ||
) |
bool absl::flags_internal::ParseFlagImpl | ( | absl::string_view | text, |
IntType * | dst | ||
) | [inline] |
Definition at line 66 of file marshalling.cc.
static ABSL_CONST_INIT absl::Mutex absl::flags_internal::program_name_guard | ( | absl::kConstInit | ) | [static] |
std::string absl::flags_internal::ProgramInvocationName | ( | ) |
Definition at line 30 of file program_name.cc.
bool absl::flags_internal::RegisterCommandLineFlag | ( | CommandLineFlag * | flag, |
const void * | ptr | ||
) |
Definition at line 482 of file registry.cc.
void absl::flags_internal::ReportUsageError | ( | absl::string_view | msg, |
bool | is_fatal | ||
) |
Definition at line 116 of file usage_config.cc.
bool absl::flags_internal::Retire | ( | FlagOpFn | ops, |
FlagMarshallingOpFn | marshalling_ops, | ||
const char * | name | ||
) |
Definition at line 489 of file registry.cc.
bool absl::flags_internal::RetiredFlag | ( | const char * | flag_name | ) | [inline] |
Definition at line 129 of file registry.h.
bool absl::flags_internal::SetCommandLineOption | ( | absl::string_view | name, |
absl::string_view | value | ||
) |
Definition at line 64 of file type_erased.cc.
bool absl::flags_internal::SetCommandLineOptionWithMode | ( | absl::string_view | name, |
absl::string_view | value, | ||
FlagSettingMode | set_mode | ||
) |
Definition at line 69 of file type_erased.cc.
void absl::flags_internal::SetProgramInvocationName | ( | absl::string_view | prog_name_str | ) |
Definition at line 43 of file program_name.cc.
void absl::flags_internal::SetProgramUsageMessage | ( | absl::string_view | new_usage_message | ) |
std::string absl::flags_internal::ShortProgramInvocationName | ( | ) |
Definition at line 36 of file program_name.cc.
size_t absl::flags_internal::Sizeof | ( | FlagOpFn | op | ) | [inline] |
Definition at line 152 of file commandlineflag.h.
Definition at line 111 of file type_erased.cc.
static bool absl::flags_internal::TryParseLocked | ( | CommandLineFlag * | flag, |
void * | dst, | ||
absl::string_view | value, | ||
std::string * | err | ||
) | [static] |
Definition at line 285 of file commandlineflag.cc.
std::string absl::flags_internal::Unparse | ( | FlagMarshallingOpFn | op, |
const void * | val | ||
) | [inline] |
Definition at line 146 of file commandlineflag.h.
std::string absl::flags_internal::Unparse | ( | bool | v | ) |
Definition at line 153 of file marshalling.cc.
std::string absl::flags_internal::Unparse | ( | short | v | ) |
Definition at line 154 of file marshalling.cc.
std::string absl::flags_internal::Unparse | ( | unsigned short | v | ) |
Definition at line 155 of file marshalling.cc.
std::string absl::flags_internal::Unparse | ( | int | v | ) |
Definition at line 156 of file marshalling.cc.
std::string absl::flags_internal::Unparse | ( | unsigned int | v | ) |
Definition at line 157 of file marshalling.cc.
std::string absl::flags_internal::Unparse | ( | long | v | ) |
Definition at line 158 of file marshalling.cc.
std::string absl::flags_internal::Unparse | ( | unsigned long | v | ) |
Definition at line 159 of file marshalling.cc.
std::string absl::flags_internal::Unparse | ( | long long | v | ) |
Definition at line 160 of file marshalling.cc.
std::string absl::flags_internal::Unparse | ( | unsigned long long | v | ) |
Definition at line 161 of file marshalling.cc.
std::string absl::flags_internal::Unparse | ( | float | v | ) |
Definition at line 181 of file marshalling.cc.
std::string absl::flags_internal::Unparse | ( | double | v | ) |
Definition at line 182 of file marshalling.cc.
std::string absl::flags_internal::Unparse | ( | const T & | v | ) |
Definition at line 209 of file marshalling.h.
std::string absl::flags_internal::UnparseFloatingPointVal | ( | T | v | ) |
Definition at line 163 of file marshalling.cc.
void absl::flags_internal::UpdateCopy | ( | CommandLineFlag * | flag, |
absl::Mutex * | primary_lock | ||
) |
Definition at line 94 of file commandlineflag.cc.
void absl::flags_internal::UpdateModifiedBit | ( | CommandLineFlag * | flag | ) |
Definition at line 160 of file commandlineflag.cc.
bool absl::flags_internal::Validate | ( | CommandLineFlag * | , |
const void * | |||
) |
Definition at line 169 of file commandlineflag.cc.
const char absl::flags_internal::kStrippedFlagHelp = "\001\002\003\004 (unknown) \004\003\002\001" |
Definition at line 36 of file commandlineflag.cc.