Home | History | Annotate | Download | only in base

Lines Matching defs:DictionaryValue

42 std::unique_ptr<DictionaryValue> CopyDictionaryWithoutEmptyChildren(
43 const DictionaryValue& dict) {
44 std::unique_ptr<DictionaryValue> copy;
45 for (DictionaryValue::Iterator it(dict); !it.IsAtEnd(); it.Advance()) {
49 copy.reset(new DictionaryValue);
63 static_cast<const DictionaryValue&>(node));
116 bool Value::GetAsDictionary(DictionaryValue**) {
120 bool Value::GetAsDictionary(const DictionaryValue**) const {
334 ///////////////////// DictionaryValue ////////////////////
337 std::unique_ptr<DictionaryValue> DictionaryValue::From(
339 DictionaryValue* out;
347 DictionaryValue::DictionaryValue()
351 DictionaryValue::~DictionaryValue() {
355 bool DictionaryValue::GetAsDictionary(DictionaryValue** out_value) {
361 bool DictionaryValue::GetAsDictionary(const DictionaryValue** out_value) const {
367 bool DictionaryValue::HasKey(const std::string& key) const {
374 void DictionaryValue::Clear() {
378 void DictionaryValue::Set(const std::string& path,
384 DictionaryValue* current_dictionary = this;
390 DictionaryValue* child_dictionary = NULL;
392 child_dictionary = new DictionaryValue;
404 void DictionaryValue::Set(const std::string& path, Value* in_value) {
408 void DictionaryValue::SetBoolean(const std::string& path, bool in_value) {
412 void DictionaryValue::SetInteger(const std::string& path, int in_value) {
416 void DictionaryValue::SetDouble(const std::string& path, double in_value) {
420 void DictionaryValue::SetString(const std::string& path,
425 void DictionaryValue::SetString(const std::string& path,
430 void DictionaryValue::SetWithoutPathExpansion(const std::string& key,
435 void DictionaryValue::SetWithoutPathExpansion(const std::string& key,
440 void DictionaryValue::SetBooleanWithoutPathExpansion(
445 void DictionaryValue::SetIntegerWithoutPathExpansion(
450 void DictionaryValue::SetDoubleWithoutPathExpansion(
455 void DictionaryValue::SetStringWithoutPathExpansion(
460 void DictionaryValue::SetStringWithoutPathExpansion(
465 bool DictionaryValue::Get(StringPiece path,
469 const DictionaryValue* current_dictionary = this;
473 const DictionaryValue* child_dictionary = NULL;
488 bool DictionaryValue::Get(StringPiece path, Value** out_value) {
489 return static_cast<const DictionaryValue&>(*this).Get(
494 bool DictionaryValue::GetBoolean(const std::string& path,
503 bool DictionaryValue::GetInteger(const std::string& path,
512 bool DictionaryValue::GetDouble(const std::string& path,
521 bool DictionaryValue::GetString(const std::string& path,
530 bool DictionaryValue::GetString(const std::string& path,
539 bool DictionaryValue::GetStringASCII(const std::string& path,
554 bool DictionaryValue::GetBinary(const std::string& path,
567 bool DictionaryValue::GetBinary(const std::string& path,
569 return static_cast<const DictionaryValue&>(*this).GetBinary(
574 bool DictionaryValue::GetDictionary(StringPiece path,
575 const DictionaryValue** out_value) const {
582 *out_value = static_cast<const DictionaryValue*>(value);
587 bool DictionaryValue::GetDictionary(StringPiece path,
588 DictionaryValue** out_value) {
589 return static_cast<const DictionaryValue&>(*this).GetDictionary(
591 const_cast<const DictionaryValue**>(out_value));
594 bool DictionaryValue::GetList(const std::string& path,
607 DictionaryValue::GetList(const std::string& path, ListValue** out_value) {
608 return static_cast<const DictionaryValue&>(*this).GetList(
613 bool DictionaryValue::GetWithoutPathExpansion(const std::string& key,
625 bool DictionaryValue::GetWithoutPathExpansion(const std::string& key,
627 return static_cast<const DictionaryValue&>(*this).GetWithoutPathExpansion(
632 bool DictionaryValue::GetBooleanWithoutPathExpansion(const std::string& key,
641 bool DictionaryValue::GetIntegerWithoutPathExpansion(const std::string& key,
650 bool DictionaryValue::GetDoubleWithoutPathExpansion(const std::string& key,
659 bool DictionaryValue::GetStringWithoutPathExpansion(
669 bool DictionaryValue::GetStringWithoutPathExpansion(const std::string& key,
678 bool DictionaryValue::GetDictionaryWithoutPathExpansion(
680 const DictionaryValue** out_value) const {
687 *out_value = static_cast<const DictionaryValue*>(value);
692 bool DictionaryValue::GetDictionaryWithoutPathExpansion(
694 DictionaryValue** out_value) {
695 const DictionaryValue& const_this =
696 static_cast<const DictionaryValue&>(*this);
699 const_cast<const DictionaryValue**>(out_value));
702 bool DictionaryValue::GetListWithoutPathExpansion(
716 bool DictionaryValue::GetListWithoutPathExpansion(const std::string& key,
719 static_cast<const DictionaryValue&>(*this).GetListWithoutPathExpansion(
724 bool DictionaryValue::Remove(const std::string& path,
728 DictionaryValue* current_dictionary = this;
741 bool DictionaryValue::RemoveWithoutPathExpansion(
755 bool DictionaryValue::RemovePath(const std::string& path,
764 DictionaryValue* subdict = NULL;
775 std::unique_ptr<DictionaryValue> DictionaryValue::DeepCopyWithoutEmptyChildren()
777 std::unique_ptr<DictionaryValue> copy =
780 copy.reset(new DictionaryValue);
784 void DictionaryValue::MergeDictionary(const DictionaryValue* dictionary) {
785 for (DictionaryValue::Iterator it(*dictionary); !it.IsAtEnd(); it.Advance()) {
789 DictionaryValue* sub_dict;
792 static_cast<const DictionaryValue*>(merge_value));
801 void DictionaryValue::Swap(DictionaryValue* other) {
805 DictionaryValue::Iterator::Iterator(const DictionaryValue& target)
809 DictionaryValue::Iterator::Iterator(const Iterator& other) = default;
811 DictionaryValue::Iterator::~Iterator() {}
813 DictionaryValue* DictionaryValue::DeepCopy() const {
814 DictionaryValue* result = new DictionaryValue;
824 std::unique_ptr<DictionaryValue> DictionaryValue::CreateDeepCopy() const {
828 bool DictionaryValue::Equals(const Value* other) const {
832 const DictionaryValue* other_dict =
833 static_cast<const DictionaryValue*>(other);
969 const DictionaryValue** out_value) const {
976 *out_value = static_cast<const DictionaryValue*>(value);
981 bool ListValue::GetDictionary(size_t index, DictionaryValue** out_value) {
984 const_cast<const DictionaryValue**>(out_value));