Lines Matching defs:Flag
35 struct Flag { struct
36 enum FlagType { TYPE_BOOL, TYPE_MAYBE_BOOL, TYPE_INT, TYPE_FLOAT,
39 FlagType type_; // What type of flag, bool, int, or string.
40 const char* name_; // Name of the flag, ex "my_flag".
41 void* valptr_; // Pointer to the global flag variable.
42 const void* defptr_; // Pointer to the default value.
43 const char* cmt_; // A comment about the flags purpose.
44 bool owns_ptr_; // Does the flag own its string value?
46 FlagType type() const { return type_; } in type()
48 const char* name() const { return name_; } in name()
50 const char* comment() const { return cmt_; } in comment()
52 bool* bool_variable() const { in bool_variable()
57 MaybeBoolFlag* maybe_bool_variable() const { in maybe_bool_variable()
62 int* int_variable() const { in int_variable()
67 double* float_variable() const { in float_variable()
72 const char* string_value() const { in string_value()
77 void set_string_value(const char* value, bool owns_ptr) { in set_string_value()
85 JSArguments* args_variable() const { in args_variable()
90 bool bool_default() const { in bool_default()
95 int int_default() const { in int_default()
100 double float_default() const { in float_default()
105 const char* string_default() const { in string_default()
110 JSArguments args_default() const { in args_default()
116 bool IsDefault() const { in IsDefault()
141 void Reset() { in Reset()