Home | History | Annotate | Download | only in base

Lines Matching defs: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));
132 bool Value::GetAsDictionary(DictionaryValue** /* out_value */) {
136 bool Value::GetAsDictionary(const DictionaryValue** /* out_value */) const {
350 ///////////////////// DictionaryValue ////////////////////
353 scoped_ptr<DictionaryValue> DictionaryValue::From(scoped_ptr<Value> value) {
354 DictionaryValue* out;
362 DictionaryValue::DictionaryValue()
366 DictionaryValue::~DictionaryValue() {
370 bool DictionaryValue::GetAsDictionary(DictionaryValue** out_value) {
376 bool DictionaryValue::GetAsDictionary(const DictionaryValue** out_value) const {
382 bool DictionaryValue::HasKey(const std::string& key) const {
389 void DictionaryValue::Clear() {
399 void DictionaryValue::Set(const std::string& path, scoped_ptr<Value> in_value) {
404 DictionaryValue* current_dictionary = this;
410 DictionaryValue* child_dictionary = NULL;
412 child_dictionary = new DictionaryValue;
424 void DictionaryValue::Set(const std::string& path, Value* in_value) {
428 void DictionaryValue::SetBoolean(const std::string& path, bool in_value) {
432 void DictionaryValue::SetInteger(const std::string& path, int in_value) {
436 void DictionaryValue::SetDouble(const std::string& path, double in_value) {
440 void DictionaryValue::SetString(const std::string& path,
445 void DictionaryValue::SetString(const std::string& path,
450 void DictionaryValue::SetWithoutPathExpansion(const std::string& key,
464 void DictionaryValue::SetWithoutPathExpansion(const std::string& key,
469 void DictionaryValue::SetBooleanWithoutPathExpansion(
474 void DictionaryValue::SetIntegerWithoutPathExpansion(
479 void DictionaryValue::SetDoubleWithoutPathExpansion(
484 void DictionaryValue::SetStringWithoutPathExpansion(
489 void DictionaryValue::SetStringWithoutPathExpansion(
494 bool DictionaryValue::Get(StringPiece path,
498 const DictionaryValue* current_dictionary = this;
502 const DictionaryValue* child_dictionary = NULL;
517 bool DictionaryValue::Get(StringPiece path, Value** out_value) {
518 return static_cast<const DictionaryValue&>(*this).Get(
523 bool DictionaryValue::GetBoolean(const std::string& path,
532 bool DictionaryValue::GetInteger(const std::string& path,
541 bool DictionaryValue::GetDouble(const std::string& path,
550 bool DictionaryValue::GetString(const std::string& path,
559 bool DictionaryValue::GetString(const std::string& path,
568 bool DictionaryValue::GetStringASCII(const std::string& path,
583 bool DictionaryValue::GetBinary(const std::string& path,
596 bool DictionaryValue::GetBinary(const std::string& path,
598 return static_cast<const DictionaryValue&>(*this).GetBinary(
603 bool DictionaryValue::GetDictionary(StringPiece path,
604 const DictionaryValue** out_value) const {
611 *out_value = static_cast<const DictionaryValue*>(value);
616 bool DictionaryValue::GetDictionary(StringPiece path,
617 DictionaryValue** out_value) {
618 return static_cast<const DictionaryValue&>(*this).GetDictionary(
620 const_cast<const DictionaryValue**>(out_value));
623 bool DictionaryValue::GetList(const std::string& path,
636 bool DictionaryValue::GetList(const std::string& path, ListValue** out_value) {
637 return static_cast<const DictionaryValue&>(*this).GetList(
642 bool DictionaryValue::GetWithoutPathExpansion(const std::string& key,
655 bool DictionaryValue::GetWithoutPathExpansion(const std::string& key,
657 return static_cast<const DictionaryValue&>(*this).GetWithoutPathExpansion(
662 bool DictionaryValue::GetBooleanWithoutPathExpansion(const std::string& key,
671 bool DictionaryValue::GetIntegerWithoutPathExpansion(const std::string& key,
680 bool DictionaryValue::GetDoubleWithoutPathExpansion(const std::string& key,
689 bool DictionaryValue::GetStringWithoutPathExpansion(
699 bool DictionaryValue::GetStringWithoutPathExpansion(const std::string& key,
708 bool DictionaryValue::GetDictionaryWithoutPathExpansion(
710 const DictionaryValue** out_value) const {
717 *out_value = static_cast<const DictionaryValue*>(value);
722 bool DictionaryValue::GetDictionaryWithoutPathExpansion(
724 DictionaryValue** out_value) {
725 const DictionaryValue& const_this =
726 static_cast<const DictionaryValue&>(*this);
729 const_cast<const DictionaryValue**>(out_value));
732 bool DictionaryValue::GetListWithoutPathExpansion(
746 bool DictionaryValue::GetListWithoutPathExpansion(const std::string& key,
749 static_cast<const DictionaryValue&>(*this).GetListWithoutPathExpansion(
754 bool DictionaryValue::Remove(const std::string& path,
758 DictionaryValue* current_dictionary = this;
771 bool DictionaryValue::RemoveWithoutPathExpansion(const std::string& key,
787 bool DictionaryValue::RemovePath(const std::string& path,
796 DictionaryValue* subdict = NULL;
807 scoped_ptr<DictionaryValue> DictionaryValue::DeepCopyWithoutEmptyChildren()
809 scoped_ptr<DictionaryValue> copy = CopyDictionaryWithoutEmptyChildren(*this);
811 copy.reset(new DictionaryValue);
815 void DictionaryValue::MergeDictionary(const DictionaryValue* dictionary) {
816 for (DictionaryValue::Iterator it(*dictionary); !it.IsAtEnd(); it.Advance()) {
820 DictionaryValue* sub_dict;
823 static_cast<const DictionaryValue*>(merge_value));
832 void DictionaryValue::Swap(DictionaryValue* other) {
836 DictionaryValue::Iterator::Iterator(const DictionaryValue& target)
840 DictionaryValue::Iterator::~Iterator() {}
842 DictionaryValue* DictionaryValue::DeepCopy() const {
843 DictionaryValue* result = new DictionaryValue;
854 scoped_ptr<DictionaryValue> DictionaryValue::CreateDeepCopy() const {
858 bool DictionaryValue::Equals(const Value* other) const {
862 const DictionaryValue* other_dict =
863 static_cast<const DictionaryValue*>(other);
1001 const DictionaryValue** out_value) const {
1008 *out_value = static_cast<const DictionaryValue*>(value);
1013 bool ListValue::GetDictionary(size_t index, DictionaryValue** out_value) {
1016 const_cast<const DictionaryValue**>(out_value));