Lines Matching defs:DictionaryValue

46       const DictionaryValue* dict = static_cast<const DictionaryValue*>(node);
47 DictionaryValue* copy = new DictionaryValue;
48 for (DictionaryValue::Iterator it(*dict); !it.IsAtEnd(); it.Advance()) {
124 bool Value::GetAsDictionary(DictionaryValue** out_value) {
128 bool Value::GetAsDictionary(const DictionaryValue** out_value) const {
335 ///////////////////// DictionaryValue ////////////////////
337 DictionaryValue::DictionaryValue()
341 DictionaryValue::~DictionaryValue() {
345 bool DictionaryValue::GetAsDictionary(DictionaryValue** out_value) {
351 bool DictionaryValue::GetAsDictionary(const DictionaryValue** out_value) const {
357 bool DictionaryValue::HasKey(const std::string& key) const {
364 void DictionaryValue::Clear() {
374 void DictionaryValue::Set(const std::string& path, Value* in_value) {
379 DictionaryValue* current_dictionary = this;
385 DictionaryValue* child_dictionary = NULL;
387 child_dictionary = new DictionaryValue;
398 void DictionaryValue::SetBoolean(const std::string& path, bool in_value) {
402 void DictionaryValue::SetInteger(const std::string& path, int in_value) {
406 void DictionaryValue::SetDouble(const std::string& path, double in_value) {
410 void DictionaryValue::SetString(const std::string& path,
415 void DictionaryValue::SetString(const std::string& path,
420 void DictionaryValue::SetWithoutPathExpansion(const std::string& key,
433 void DictionaryValue::SetBooleanWithoutPathExpansion(
438 void DictionaryValue::SetIntegerWithoutPathExpansion(
443 void DictionaryValue::SetDoubleWithoutPathExpansion(
448 void DictionaryValue::SetStringWithoutPathExpansion(
453 void DictionaryValue::SetStringWithoutPathExpansion(
458 bool DictionaryValue::Get(const std::string& path,
462 const DictionaryValue* current_dictionary = this;
466 const DictionaryValue* child_dictionary = NULL;
478 bool DictionaryValue::Get(const std::string& path, Value** out_value) {
479 return static_cast<const DictionaryValue&>(*this).Get(
484 bool DictionaryValue::GetBoolean(const std::string& path,
493 bool DictionaryValue::GetInteger(const std::string& path,
502 bool DictionaryValue::GetDouble(const std::string& path,
511 bool DictionaryValue::GetString(const std::string& path,
520 bool DictionaryValue::GetString(const std::string& path,
529 bool DictionaryValue::GetStringASCII(const std::string& path,
544 bool DictionaryValue::GetBinary(const std::string& path,
557 bool DictionaryValue::GetBinary(const std::string& path,
559 return static_cast<const DictionaryValue&>(*this).GetBinary(
564 bool DictionaryValue::GetDictionary(const std::string& path,
565 const DictionaryValue** out_value) const {
572 *out_value = static_cast<const DictionaryValue*>(value);
577 bool DictionaryValue::GetDictionary(const std::string& path,
578 DictionaryValue** out_value) {
579 return static_cast<const DictionaryValue&>(*this).GetDictionary(
581 const_cast<const DictionaryValue**>(out_value));
584 bool DictionaryValue::GetList(const std::string& path,
597 bool DictionaryValue::GetList(const std::string& path, ListValue** out_value) {
598 return static_cast<const DictionaryValue&>(*this).GetList(
603 bool DictionaryValue::GetWithoutPathExpansion(const std::string& key,
616 bool DictionaryValue::GetWithoutPathExpansion(const std::string& key,
618 return static_cast<const DictionaryValue&>(*this).GetWithoutPathExpansion(
623 bool DictionaryValue::GetBooleanWithoutPathExpansion(const std::string& key,
632 bool DictionaryValue::GetIntegerWithoutPathExpansion(const std::string& key,
641 bool DictionaryValue::GetDoubleWithoutPathExpansion(const std::string& key,
650 bool DictionaryValue::GetStringWithoutPathExpansion(
660 bool DictionaryValue::GetStringWithoutPathExpansion(const std::string& key,
669 bool DictionaryValue::GetDictionaryWithoutPathExpansion(
671 const DictionaryValue** out_value) const {
678 *out_value = static_cast<const DictionaryValue*>(value);
683 bool DictionaryValue::GetDictionaryWithoutPathExpansion(
685 DictionaryValue** out_value) {
686 const DictionaryValue& const_this =
687 static_cast<const DictionaryValue&>(*this);
690 const_cast<const DictionaryValue**>(out_value));
693 bool DictionaryValue::GetListWithoutPathExpansion(
707 bool DictionaryValue::GetListWithoutPathExpansion(const std::string& key,
710 static_cast<const DictionaryValue&>(*this).GetListWithoutPathExpansion(
715 bool DictionaryValue::Remove(const std::string& path,
719 DictionaryValue* current_dictionary = this;
732 bool DictionaryValue::RemoveWithoutPathExpansion(const std::string& key,
748 bool DictionaryValue::RemovePath(const std::string& path,
757 DictionaryValue* subdict = NULL;
768 DictionaryValue* DictionaryValue::DeepCopyWithoutEmptyChildren() const {
770 return copy ? static_cast<DictionaryValue*>(copy) : new DictionaryValue;
773 void DictionaryValue::MergeDictionary(const DictionaryValue* dictionary) {
774 for (DictionaryValue::Iterator it(*dictionary); !it.IsAtEnd(); it.Advance()) {
778 DictionaryValue* sub_dict;
781 static_cast<const DictionaryValue*>(merge_value));
790 void DictionaryValue::Swap(DictionaryValue* other) {
794 DictionaryValue::Iterator::Iterator(const DictionaryValue& target)
798 DictionaryValue::Iterator::~Iterator() {}
800 DictionaryValue* DictionaryValue::DeepCopy() const {
801 DictionaryValue* result = new DictionaryValue;
812 bool DictionaryValue::Equals(const Value* other) const {
816 const DictionaryValue* other_dict =
817 static_cast<const DictionaryValue*>(other);
941 const DictionaryValue** out_value) const {
948 *out_value = static_cast<const DictionaryValue*>(value);
953 bool ListValue::GetDictionary(size_t index, DictionaryValue** out_value) {
956 const_cast<const DictionaryValue**>(out_value));