Home | History | Annotate | Download | only in base

Lines Matching defs:Flag

29 // where xxx is the flag type. Flags are referred to via FLAG_yyy,
30 // where yyy is the flag name. For intialization and iteration of flags,
32 // flag, see the Flag class.
51 // flag is defined via: DEFINE_bool(flag, "false", "some comment");.
83 // Each flag can be accessed programmatically via a Flag object.
84 class Flag {
89 Flag(const char* file, const char* name, const char* comment,
92 // General flag information
97 // Flag type
100 // Flag variables
142 // Resets a flag to its default value
146 Flag* next() const { return next_; }
148 // Prints flag information. The current flag value is only printed
161 Flag* next_;
169 /* define and initialize the flag */ \
171 /* register the flag */ \
172 static Flag Flag_##name(__FILE__, #name, (comment), \
173 Flag::type, &FLAG_##name, \
179 /* declare the external flag */ \
183 // Use the following macros to define a new flag:
194 // Use the following macros to declare a flag defined elsewhere:
206 // The NULL-terminated list of all flags. Traverse with Flag::next().
207 static Flag* list() { return list_; }
211 // flag value is only printed if print_current_value is set.
214 // Lookup a flag by name. Returns the matching flag or NULL.
215 static Flag* Lookup(const char* name);
218 // a flag name and flag value (or NULL if they are missing). is_bool is set
226 // Set the flag values by parsing the command line. If remove_flags
231 // remove_flags value, and no assumptions about flag settings should
236 // --flag (bool flags only)
238 // --flag=value (non-bool flags only, no spaces around '=')
239 // --flag value (non-bool flags only)
250 // Registers a new flag. Called during program initialization. Not
252 static void Register(Flag* flag);
255 static Flag* list_;