Lines Matching refs:FlagValue

191 class FlagValue {  class
205 FlagValue(FlagType* valbuf, bool transfer_ownership_of_value);
206 ~FlagValue();
218 friend bool TryParseLocked(const CommandLineFlag*, FlagValue*,
225 bool Equal(const FlagValue& x) const;
226 FlagValue* New() const; // creates a new one with default value
227 void CopyFrom(const FlagValue& x);
239 FlagValue(const FlagValue&); // no copying!
240 void operator=(const FlagValue&);
246 struct FlagValue::FlagValueTraits<type> { \
270 FlagValue::FlagValue(FlagType* valbuf, in FlagValue() function in GFLAGS_NAMESPACE::__anon4cd27d730111::FlagValue
277 FlagValue::~FlagValue() { in ~FlagValue()
292 bool FlagValue::ParseFrom(const char* value) { in ParseFrom()
370 string FlagValue::ToString() const { in ToString()
398 bool FlagValue::Validate(const char* flagname, in Validate()
428 const char* FlagValue::TypeName() const { in TypeName()
445 bool FlagValue::Equal(const FlagValue& x) const { in Equal()
460 FlagValue* FlagValue::New() const { in New()
462 case FV_BOOL: return new FlagValue(new bool(false), true); in New()
463 case FV_INT32: return new FlagValue(new int32(0), true); in New()
464 case FV_UINT32: return new FlagValue(new uint32(0), true); in New()
465 case FV_INT64: return new FlagValue(new int64(0), true); in New()
466 case FV_UINT64: return new FlagValue(new uint64(0), true); in New()
467 case FV_DOUBLE: return new FlagValue(new double(0.0), true); in New()
468 case FV_STRING: return new FlagValue(new string, true); in New()
473 void FlagValue::CopyFrom(const FlagValue& x) { in CopyFrom()
502 FlagValue* current_val, FlagValue* default_val);
515 FlagValue::ValueType Type() const { return defvalue_->Type(); } in Type()
520 bool Validate(const FlagValue& value) const;
540 FlagValue* defvalue_; // Default value for flag
541 FlagValue* current_; // Current value for flag
554 FlagValue* current_val, FlagValue* default_val) in CommandLineFlag()
606 bool CommandLineFlag::Validate(const FlagValue& value) const { in Validate()
800 if (flag->Type() != FlagValue::FV_BOOL) { in SplitArgumentLocked()
814 if (*v == NULL && flag->Type() == FlagValue::FV_BOOL) { in SplitArgumentLocked()
821 bool TryParseLocked(const CommandLineFlag* flag, FlagValue* flag_value, in TryParseLocked()
824 FlagValue* tentative_value = flag_value->New(); in TryParseLocked()
1069 assert(flag->Type() != FlagValue::FV_BOOL); in ParseNewCommandLineFlags()
1094 && flag->Type() == FlagValue::FV_STRING in ParseNewCommandLineFlags()
1369 FlagValue ifv(new T, true); in GetFromEnv()
1424 FlagValue* current, in RegisterCommandLineFlag()
1425 FlagValue* defvalue) { in RegisterCommandLineFlag()
1441 FlagValue* const current = new FlagValue(current_storage, false); in FlagRegisterer()
1442 FlagValue* const defvalue = new FlagValue(defvalue_storage, false); in FlagRegisterer()