Lines Matching refs:out_value
116 bool Value::GetAsString(const StringValue** out_value) const { in GetAsString()
192 bool FundamentalValue::GetAsBoolean(bool* out_value) const { in GetAsBoolean()
193 if (out_value && IsType(TYPE_BOOLEAN)) in GetAsBoolean()
194 *out_value = boolean_value_; in GetAsBoolean()
198 bool FundamentalValue::GetAsInteger(int* out_value) const { in GetAsInteger()
199 if (out_value && IsType(TYPE_INTEGER)) in GetAsInteger()
200 *out_value = integer_value_; in GetAsInteger()
204 bool FundamentalValue::GetAsDouble(double* out_value) const { in GetAsDouble()
205 if (out_value && IsType(TYPE_DOUBLE)) in GetAsDouble()
206 *out_value = double_value_; in GetAsDouble()
207 else if (out_value && IsType(TYPE_INTEGER)) in GetAsDouble()
208 *out_value = integer_value_; in GetAsDouble()
271 bool StringValue::GetAsString(std::string* out_value) const { in GetAsString()
272 if (out_value) in GetAsString()
273 *out_value = value_; in GetAsString()
277 bool StringValue::GetAsString(const StringValue** out_value) const { in GetAsString()
278 if (out_value) in GetAsString()
279 *out_value = this; in GetAsString()
316 bool BinaryValue::GetAsBinary(const BinaryValue** out_value) const { in GetAsBinary()
317 if (out_value) in GetAsBinary()
318 *out_value = this; in GetAsBinary()
355 bool DictionaryValue::GetAsDictionary(DictionaryValue** out_value) { in GetAsDictionary() argument
356 if (out_value) in GetAsDictionary()
357 *out_value = this; in GetAsDictionary()
361 bool DictionaryValue::GetAsDictionary(const DictionaryValue** out_value) const { in GetAsDictionary()
362 if (out_value) in GetAsDictionary()
363 *out_value = this; in GetAsDictionary()
470 const Value** out_value) const { in Get()
489 out_value); in Get()
492 bool DictionaryValue::Get(StringPiece path, Value** out_value) { in Get() argument
495 const_cast<const Value**>(out_value)); in Get()
508 int* out_value) const { in GetInteger()
513 return value->GetAsInteger(out_value); in GetInteger()
517 double* out_value) const { in GetDouble()
522 return value->GetAsDouble(out_value); in GetDouble()
526 std::string* out_value) const { in GetString()
531 return value->GetAsString(out_value); in GetString()
535 std::string* out_value) const { in GetStringASCII()
545 out_value->assign(out); in GetStringASCII()
550 const BinaryValue** out_value) const { in GetBinary()
556 if (out_value) in GetBinary()
557 *out_value = static_cast<const BinaryValue*>(value); in GetBinary()
563 BinaryValue** out_value) { in GetBinary() argument
566 const_cast<const BinaryValue**>(out_value)); in GetBinary()
570 const DictionaryValue** out_value) const { in GetDictionary()
576 if (out_value) in GetDictionary()
577 *out_value = static_cast<const DictionaryValue*>(value); in GetDictionary()
583 DictionaryValue** out_value) { in GetDictionary() argument
586 const_cast<const DictionaryValue**>(out_value)); in GetDictionary()
590 const ListValue** out_value) const { in GetList()
596 if (out_value) in GetList()
597 *out_value = static_cast<const ListValue*>(value); in GetList()
602 bool DictionaryValue::GetList(const std::string& path, ListValue** out_value) { in GetList() argument
605 const_cast<const ListValue**>(out_value)); in GetList()
609 const Value** out_value) const { in GetWithoutPathExpansion()
616 if (out_value) in GetWithoutPathExpansion()
617 *out_value = entry; in GetWithoutPathExpansion()
622 Value** out_value) { in GetWithoutPathExpansion() argument
625 const_cast<const Value**>(out_value)); in GetWithoutPathExpansion()
629 bool* out_value) const { in GetBooleanWithoutPathExpansion()
634 return value->GetAsBoolean(out_value); in GetBooleanWithoutPathExpansion()
638 int* out_value) const { in GetIntegerWithoutPathExpansion()
643 return value->GetAsInteger(out_value); in GetIntegerWithoutPathExpansion()
647 double* out_value) const { in GetDoubleWithoutPathExpansion()
652 return value->GetAsDouble(out_value); in GetDoubleWithoutPathExpansion()
657 std::string* out_value) const { in GetStringWithoutPathExpansion()
662 return value->GetAsString(out_value); in GetStringWithoutPathExpansion()
667 const DictionaryValue** out_value) const { in GetDictionaryWithoutPathExpansion()
673 if (out_value) in GetDictionaryWithoutPathExpansion()
674 *out_value = static_cast<const DictionaryValue*>(value); in GetDictionaryWithoutPathExpansion()
681 DictionaryValue** out_value) { in GetDictionaryWithoutPathExpansion() argument
686 const_cast<const DictionaryValue**>(out_value)); in GetDictionaryWithoutPathExpansion()
691 const ListValue** out_value) const { in GetListWithoutPathExpansion()
697 if (out_value) in GetListWithoutPathExpansion()
698 *out_value = static_cast<const ListValue*>(value); in GetListWithoutPathExpansion()
704 ListValue** out_value) { in GetListWithoutPathExpansion() argument
708 const_cast<const ListValue**>(out_value)); in GetListWithoutPathExpansion()
712 scoped_ptr<Value>* out_value) { in Remove() argument
725 out_value); in Remove()
729 scoped_ptr<Value>* out_value) { in RemoveWithoutPathExpansion() argument
736 if (out_value) in RemoveWithoutPathExpansion()
737 out_value->reset(entry); in RemoveWithoutPathExpansion()
745 scoped_ptr<Value>* out_value) { in RemovePath() argument
750 return RemoveWithoutPathExpansion(path, out_value); in RemovePath()
757 out_value); in RemovePath()
883 bool ListValue::Get(size_t index, const Value** out_value) const { in Get()
887 if (out_value) in Get()
888 *out_value = list_[index]; in Get()
893 bool ListValue::Get(size_t index, Value** out_value) { in Get() argument
896 const_cast<const Value**>(out_value)); in Get()
907 bool ListValue::GetInteger(size_t index, int* out_value) const { in GetInteger()
912 return value->GetAsInteger(out_value); in GetInteger()
915 bool ListValue::GetDouble(size_t index, double* out_value) const { in GetDouble()
920 return value->GetAsDouble(out_value); in GetDouble()
923 bool ListValue::GetString(size_t index, std::string* out_value) const { in GetString()
928 return value->GetAsString(out_value); in GetString()
931 bool ListValue::GetBinary(size_t index, const BinaryValue** out_value) const { in GetBinary()
937 if (out_value) in GetBinary()
938 *out_value = static_cast<const BinaryValue*>(value); in GetBinary()
943 bool ListValue::GetBinary(size_t index, BinaryValue** out_value) { in GetBinary() argument
946 const_cast<const BinaryValue**>(out_value)); in GetBinary()
950 const DictionaryValue** out_value) const { in GetDictionary()
956 if (out_value) in GetDictionary()
957 *out_value = static_cast<const DictionaryValue*>(value); in GetDictionary()
962 bool ListValue::GetDictionary(size_t index, DictionaryValue** out_value) { in GetDictionary() argument
965 const_cast<const DictionaryValue**>(out_value)); in GetDictionary()
968 bool ListValue::GetList(size_t index, const ListValue** out_value) const { in GetList()
974 if (out_value) in GetList()
975 *out_value = static_cast<const ListValue*>(value); in GetList()
980 bool ListValue::GetList(size_t index, ListValue** out_value) { in GetList() argument
983 const_cast<const ListValue**>(out_value)); in GetList()
986 bool ListValue::Remove(size_t index, scoped_ptr<Value>* out_value) { in Remove() argument
990 if (out_value) in Remove()
991 out_value->reset(list_[index]); in Remove()
1015 scoped_ptr<Value>* out_value) { in Erase() argument
1016 if (out_value) in Erase()
1017 out_value->reset(*iter); in Erase()
1085 bool ListValue::GetAsList(ListValue** out_value) { in GetAsList() argument
1086 if (out_value) in GetAsList()
1087 *out_value = this; in GetAsList()
1091 bool ListValue::GetAsList(const ListValue** out_value) const { in GetAsList()
1092 if (out_value) in GetAsList()
1093 *out_value = this; in GetAsList()