Lines Matching refs:DictionaryValue

42 scoped_ptr<DictionaryValue> CopyDictionaryWithoutEmptyChildren(
43 const DictionaryValue& dict) {
44 scoped_ptr<DictionaryValue> copy;
45 for (DictionaryValue::Iterator it(dict); !it.IsAtEnd(); it.Advance()) {
49 copy.reset(new DictionaryValue);
63 static_cast<const DictionaryValue&>(node));
128 bool Value::GetAsDictionary(DictionaryValue** /* out_value */) {
132 bool Value::GetAsDictionary(const DictionaryValue** /* out_value */) const {
335 ///////////////////// DictionaryValue ////////////////////
338 scoped_ptr<DictionaryValue> DictionaryValue::From(scoped_ptr<Value> value) {
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() {
384 void DictionaryValue::Set(const std::string& path, scoped_ptr<Value> in_value) {
389 DictionaryValue* current_dictionary = this;
395 DictionaryValue* child_dictionary = NULL;
397 child_dictionary = new DictionaryValue;
409 void DictionaryValue::Set(const std::string& path, Value* in_value) {
413 void DictionaryValue::SetBoolean(const std::string& path, bool in_value) {
417 void DictionaryValue::SetInteger(const std::string& path, int in_value) {
421 void DictionaryValue::SetDouble(const std::string& path, double in_value) {
425 void DictionaryValue::SetString(const std::string& path,
430 void DictionaryValue::SetWithoutPathExpansion(const std::string& key,
444 void DictionaryValue::SetWithoutPathExpansion(const std::string& key,
449 void DictionaryValue::SetBooleanWithoutPathExpansion(
454 void DictionaryValue::SetIntegerWithoutPathExpansion(
459 void DictionaryValue::SetDoubleWithoutPathExpansion(
464 void DictionaryValue::SetStringWithoutPathExpansion(
469 bool DictionaryValue::Get(StringPiece path,
473 const DictionaryValue* current_dictionary = this;
477 const DictionaryValue* child_dictionary = NULL;
492 bool DictionaryValue::Get(StringPiece path, Value** out_value) {
493 return static_cast<const DictionaryValue&>(*this).Get(
498 bool DictionaryValue::GetBoolean(const std::string& path,
507 bool DictionaryValue::GetInteger(const std::string& path,
516 bool DictionaryValue::GetDouble(const std::string& path,
525 bool DictionaryValue::GetString(const std::string& path,
534 bool DictionaryValue::GetStringASCII(const std::string& path,
549 bool DictionaryValue::GetBinary(const std::string& path,
562 bool DictionaryValue::GetBinary(const std::string& path,
564 return static_cast<const DictionaryValue&>(*this).GetBinary(
569 bool DictionaryValue::GetDictionary(StringPiece path,
570 const DictionaryValue** out_value) const {
577 *out_value = static_cast<const DictionaryValue*>(value);
582 bool DictionaryValue::GetDictionary(StringPiece path,
583 DictionaryValue** out_value) {
584 return static_cast<const DictionaryValue&>(*this).GetDictionary(
586 const_cast<const DictionaryValue**>(out_value));
589 bool DictionaryValue::GetList(const std::string& path,
602 bool DictionaryValue::GetList(const std::string& path, ListValue** out_value) {
603 return static_cast<const DictionaryValue&>(*this).GetList(
608 bool DictionaryValue::GetWithoutPathExpansion(const std::string& key,
621 bool DictionaryValue::GetWithoutPathExpansion(const std::string& key,
623 return static_cast<const DictionaryValue&>(*this).GetWithoutPathExpansion(
628 bool DictionaryValue::GetBooleanWithoutPathExpansion(const std::string& key,
637 bool DictionaryValue::GetIntegerWithoutPathExpansion(const std::string& key,
646 bool DictionaryValue::GetDoubleWithoutPathExpansion(const std::string& key,
655 bool DictionaryValue::GetStringWithoutPathExpansion(
665 bool DictionaryValue::GetDictionaryWithoutPathExpansion(
667 const DictionaryValue** out_value) const {
674 *out_value = static_cast<const DictionaryValue*>(value);
679 bool DictionaryValue::GetDictionaryWithoutPathExpansion(
681 DictionaryValue** out_value) {
682 const DictionaryValue& const_this =
683 static_cast<const DictionaryValue&>(*this);
686 const_cast<const DictionaryValue**>(out_value));
689 bool DictionaryValue::GetListWithoutPathExpansion(
703 bool DictionaryValue::GetListWithoutPathExpansion(const std::string& key,
706 static_cast<const DictionaryValue&>(*this).GetListWithoutPathExpansion(
711 bool DictionaryValue::Remove(const std::string& path,
715 DictionaryValue* current_dictionary = this;
728 bool DictionaryValue::RemoveWithoutPathExpansion(const std::string& key,
744 bool DictionaryValue::RemovePath(const std::string& path,
753 DictionaryValue* subdict = NULL;
764 scoped_ptr<DictionaryValue> DictionaryValue::DeepCopyWithoutEmptyChildren()
766 scoped_ptr<DictionaryValue> copy = CopyDictionaryWithoutEmptyChildren(*this);
768 copy.reset(new DictionaryValue);
772 void DictionaryValue::MergeDictionary(const DictionaryValue* dictionary) {
773 for (DictionaryValue::Iterator it(*dictionary); !it.IsAtEnd(); it.Advance()) {
777 DictionaryValue* sub_dict;
780 static_cast<const DictionaryValue*>(merge_value));
789 void DictionaryValue::Swap(DictionaryValue* other) {
793 DictionaryValue::Iterator::Iterator(const DictionaryValue& target)
797 DictionaryValue::Iterator::~Iterator() {}
799 DictionaryValue* DictionaryValue::DeepCopy() const {
800 DictionaryValue* result = new DictionaryValue;
811 scoped_ptr<DictionaryValue> DictionaryValue::CreateDeepCopy() const {
815 bool DictionaryValue::Equals(const Value* other) const {
819 const DictionaryValue* other_dict =
820 static_cast<const DictionaryValue*>(other);
950 const DictionaryValue** out_value) const {
957 *out_value = static_cast<const DictionaryValue*>(value);
962 bool ListValue::GetDictionary(size_t index, DictionaryValue** out_value) {
965 const_cast<const DictionaryValue**>(out_value));