mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Rename ArrayRef to JsonArray
				
					
				
			This commit is contained in:
		
							
								
								
									
										32
									
								
								src/ArduinoJson/Array/JsonArrayImpl.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								src/ArduinoJson/Array/JsonArrayImpl.hpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,32 @@ | ||||
| // ArduinoJson - https://arduinojson.org | ||||
| // Copyright © 2014-2022, Benoit BLANCHON | ||||
| // MIT License | ||||
|  | ||||
| #pragma once | ||||
|  | ||||
| #include <ArduinoJson/Array/JsonArray.hpp> | ||||
| #include <ArduinoJson/Object/ObjectRef.hpp> | ||||
|  | ||||
| namespace ARDUINOJSON_NAMESPACE { | ||||
|  | ||||
| inline ObjectRef JsonArray::createNestedObject() const { | ||||
|   return add().to<ObjectRef>(); | ||||
| } | ||||
|  | ||||
| template <typename TDerived> | ||||
| inline JsonArray VariantRefBase<TDerived>::createNestedArray() const { | ||||
|   return add().template to<JsonArray>(); | ||||
| } | ||||
|  | ||||
| template <typename TDerived> | ||||
| inline ObjectRef VariantRefBase<TDerived>::createNestedObject() const { | ||||
|   return add().template to<ObjectRef>(); | ||||
| } | ||||
|  | ||||
| template <typename TDerived> | ||||
| inline ElementProxy<TDerived> VariantRefBase<TDerived>::operator[]( | ||||
|     size_t index) const { | ||||
|   return ElementProxy<TDerived>(derived(), index); | ||||
| } | ||||
|  | ||||
| }  // namespace ARDUINOJSON_NAMESPACE | ||||
		Reference in New Issue
	
	Block a user