case Property::ARRAY:
{
- Property::Array* array = propertyValue.GetArray();
+ const Property::Array* array = propertyValue.GetArray();
if( array )
{
value = *array;
case Property::MAP:
{
- Property::Map* map = propertyValue.GetMap();
+ const Property::Map* map = propertyValue.GetMap();
if( map )
{
value = *map;
{
if( propertyValue.GetType() == Property::MAP )
{
- Dali::Property::Map* map = propertyValue.GetMap();
+ const Dali::Property::Map* map = propertyValue.GetMap();
if( map )
{
std::string vertex;
return converted;
}
-Property::Array* Property::Value::GetArray() const
+Property::Array const* Property::Value::GetArray() const
{
if(mImpl && (mImpl->GetType() == ARRAY))
{
return nullptr;
}
-Property::Map* Property::Value::GetMap() const
+Property::Array* Property::Value::GetArray()
+{
+ Property::Array* array = nullptr;
+ if(mImpl && (mImpl->GetType() == ARRAY)) // type cannot change in mImpl so array is allocated
+ {
+ array = mImpl->GetArrayPtr();
+ }
+ return array;
+}
+
+Property::Map const* Property::Value::GetMap() const
+{
+ Property::Map* map = nullptr;
+ if(mImpl && (mImpl->GetType() == MAP)) // type cannot change in mImpl so map is allocated
+ {
+ map = mImpl->GetMapPtr();
+ }
+ return map;
+}
+
+Property::Map* Property::Value::GetMap()
{
if(mImpl && (mImpl->GetType() == MAP))
{
bool Get(Property::Map& mapValue) const;
/**
- * @brief Retrieves the Array API of the Property::Value without copying the contents of the map.
+ * @brief Retrieves the Array API of the Property::Value without copying the contents of the array.
*
- * @SINCE_1_0.0
+ * @SINCE_1_9.32
* @return The Array API of the Property::Value or NULL if not a Property::Array
*/
- Property::Array* GetArray() const;
+ const Property::Array* GetArray() const;
+
+ /**
+ * @brief Retrieves the Array API of the Property::Value without copying the contents of the array.
+ *
+ * @SINCE_1_9.32
+ * @return The Array API of the Property::Value or NULL if not a Property::Array
+ */
+ Property::Array* GetArray();
/**
* @brief Retrieves the Map API of the Property::Value without copying the contents of the map.
*
- * @SINCE_1_0.0
+ * @SINCE_1_9.32
+ * @return The Map API of the Property::Value or NULL if not a Property::Map
+ */
+ const Property::Map* GetMap() const;
+
+ /**
+ * @brief Retrieves the Map API of the Property::Value without copying the contents of the map.
+ *
+ * @SINCE_1_9.32
* @return The Map API of the Property::Value or NULL if not a Property::Map
*/
- Property::Map* GetMap() const;
+ Property::Map* GetMap();
/**
* @brief Retrieves an extents.