Remove ActorContainer typedef 09/39309/4
authorNick Holland <nick.holland@partner.samsung.com>
Tue, 12 May 2015 13:03:52 +0000 (14:03 +0100)
committerNick Holland <nick.holland@partner.samsung.com>
Wed, 13 May 2015 10:02:12 +0000 (03:02 -0700)
Also removed some unnecessary includes of <vector-wrapper.h> from
public-api files

Change-Id: I158193751290c01614f2a05211dd629bb5cf04fd

12 files changed:
automated-tests/src/dali-internal/utc-Dali-Internal-Image-Culling.cpp
dali/internal/event/actors/actor-impl.h
dali/internal/event/events/hit-test-algorithm-impl.cpp
dali/internal/event/size-negotiation/relayout-controller-impl.cpp
dali/internal/event/size-negotiation/relayout-controller-impl.h
dali/public-api/actors/actor.h
dali/public-api/actors/custom-actor-impl.h
dali/public-api/events/hover-event.h
dali/public-api/events/touch-event.h
dali/public-api/images/buffer-image.h
dali/public-api/images/nine-patch-image.h
dali/public-api/render-tasks/render-task-list.h

index e911d39..e55d3e1 100644 (file)
@@ -423,7 +423,7 @@ void TestPlaneOfImages(TestApplication& application, float z)
 
   // Create a grid of 9 x 9 actors; only the central 3x3 are in viewport
 
 
   // Create a grid of 9 x 9 actors; only the central 3x3 are in viewport
 
-  ActorContainer actors;
+  std::vector< Actor > actors;
   for( int i = 0; i < NUM_ROWS*NUM_COLS; i++ )
   {
     GLuint textureId = TEXTURE_ID_OFFSET+i;
   for( int i = 0; i < NUM_ROWS*NUM_COLS; i++ )
   {
     GLuint textureId = TEXTURE_ID_OFFSET+i;
index 9ca8845..faf1705 100644 (file)
@@ -57,7 +57,7 @@ class RenderTask;
 struct DynamicsData;
 
 typedef IntrusivePtr< Actor > ActorPtr;
 struct DynamicsData;
 
 typedef IntrusivePtr< Actor > ActorPtr;
-typedef Dali::ActorContainer ActorContainer; // Store handles to return via public-api
+typedef std::vector< Dali::Actor > ActorContainer; // Store handles to return via public-api
 typedef ActorContainer::iterator ActorIter;
 typedef ActorContainer::const_iterator ActorConstIter;
 
 typedef ActorContainer::iterator ActorIter;
 typedef ActorContainer::const_iterator ActorConstIter;
 
index b3eb5ad..e43d5fa 100644 (file)
@@ -207,12 +207,12 @@ HitActor HitTestWithinLayer( Actor& actor,
   if( actor.GetChildCount() > 0 )
   {
     childHit.distance = std::numeric_limits<float>::max();
   if( actor.GetChildCount() > 0 )
   {
     childHit.distance = std::numeric_limits<float>::max();
-    Dali::ActorContainer& children = actor.GetChildrenInternal();
+    ActorContainer& children = actor.GetChildrenInternal();
 
     // Hit test ALL children and calculate their distance.
     bool parentIsRenderable = actor.IsRenderable();
 
 
     // Hit test ALL children and calculate their distance.
     bool parentIsRenderable = actor.IsRenderable();
 
-    for (Dali::ActorIter iter = children.begin(), endIter = children.end(); iter != endIter; ++iter)
+    for( ActorIter iter = children.begin(), endIter = children.end(); iter != endIter; ++iter )
     {
       // Descend tree only if...
       if ( !iter->IsLayer() &&    // Child is NOT a layer, hit testing current layer only or Child is not a layer and we've inherited the stencil draw mode
     {
       // Descend tree only if...
       if ( !iter->IsLayer() &&    // Child is NOT a layer, hit testing current layer only or Child is not a layer and we've inherited the stencil draw mode
index 6fa43f3..91f0ad9 100644 (file)
@@ -144,8 +144,8 @@ void RelayoutController::RequestRelayout( Dali::Actor& actor, Dimension::Type di
     return;
   }
 
     return;
   }
 
-  Dali::ActorContainer potentialRedundantSubRoots;
-  Dali::ActorContainer topOfSubTreeStack;
+  std::vector< Dali::Actor > potentialRedundantSubRoots;
+  std::vector< Dali::Actor > topOfSubTreeStack;
 
   topOfSubTreeStack.push_back( actor );
 
 
   topOfSubTreeStack.push_back( actor );
 
@@ -176,7 +176,7 @@ void RelayoutController::RequestRelayout( Dali::Actor& actor, Dimension::Type di
   }
 
   // Remove any redundant sub-tree heads
   }
 
   // Remove any redundant sub-tree heads
-  for( ActorContainer::iterator it = potentialRedundantSubRoots.begin(), itEnd = potentialRedundantSubRoots.end(); it != itEnd; ++it )
+  for( std::vector< Dali::Actor >::iterator it = potentialRedundantSubRoots.begin(), itEnd = potentialRedundantSubRoots.end(); it != itEnd; ++it )
   {
     Dali::Actor subRoot = *it;
 
   {
     Dali::Actor subRoot = *it;
 
@@ -232,7 +232,7 @@ void RelayoutController::RequestRelayoutTree( Dali::Actor& actor )
   }
 }
 
   }
 }
 
-void RelayoutController::PropagateAll( Dali::Actor& actor, Dimension::Type dimension, Dali::ActorContainer& topOfSubTreeStack, Dali::ActorContainer& potentialRedundantSubRoots )
+void RelayoutController::PropagateAll( Dali::Actor& actor, Dimension::Type dimension, std::vector< Dali::Actor >& topOfSubTreeStack, std::vector< Dali::Actor >& potentialRedundantSubRoots )
 {
   // Only set dirty flag if doing relayout and not already marked as dirty
   Actor& actorImpl = GetImplementation( actor );
 {
   // Only set dirty flag if doing relayout and not already marked as dirty
   Actor& actorImpl = GetImplementation( actor );
index 7c5b39c..aa277c5 100644 (file)
@@ -22,7 +22,6 @@
 #include <dali/public-api/common/vector-wrapper.h>
 #include <dali/public-api/object/base-object.h>
 #include <dali/public-api/size-negotiation/relayout-container.h>
 #include <dali/public-api/common/vector-wrapper.h>
 #include <dali/public-api/object/base-object.h>
 #include <dali/public-api/size-negotiation/relayout-container.h>
-
 #include <dali/internal/common/memory-pool-object-allocator.h>
 #include <dali/internal/event/size-negotiation/memory-pool-relayout-container.h>
 
 #include <dali/internal/common/memory-pool-object-allocator.h>
 #include <dali/internal/event/size-negotiation/memory-pool-relayout-container.h>
 
@@ -163,7 +162,7 @@ private:
    * @param[in] topOfSubTreeStack The top of the sub tree that this actor is in
    * @param[in] potentialRedundantSubRoots Actors collected as potentially already being included in relayout
    */
    * @param[in] topOfSubTreeStack The top of the sub tree that this actor is in
    * @param[in] potentialRedundantSubRoots Actors collected as potentially already being included in relayout
    */
-  void PropagateAll( Dali::Actor& actor, Dimension::Type dimension, Dali::ActorContainer& topOfSubTreeStack, Dali::ActorContainer& potentialRedundantSubRoots );
+  void PropagateAll( Dali::Actor& actor, Dimension::Type dimension, std::vector< Dali::Actor >& topOfSubTreeStack, std::vector< Dali::Actor >& potentialRedundantSubRoots );
 
   /**
    * Queue an actor on the relayout container
 
   /**
    * Queue an actor on the relayout container
index 918fd1d..2de01a8 100644 (file)
@@ -22,7 +22,6 @@
 #include <string>
 
 // INTERNAL INCLUDES
 #include <string>
 
 // INTERNAL INCLUDES
-#include <dali/public-api/common/vector-wrapper.h>
 #include <dali/public-api/actors/actor-enumerations.h>
 #include <dali/public-api/actors/draw-mode.h>
 #include <dali/public-api/math/radian.h>
 #include <dali/public-api/actors/actor-enumerations.h>
 #include <dali/public-api/actors/draw-mode.h>
 #include <dali/public-api/math/radian.h>
@@ -50,13 +49,6 @@ struct Vector2;
 struct Vector3;
 struct Vector4;
 
 struct Vector3;
 struct Vector4;
 
-/**
- * @brief Actor container.
- */
-typedef std::vector<Actor> ActorContainer;
-typedef ActorContainer::iterator ActorIter; ///< Iterator for Dali::ActorContainer
-typedef ActorContainer::const_iterator ActorConstIter; ///< Const iterator for Dali::ActorContainer
-
 typedef Rect<float> Padding;      ///< Padding definition
 
 /**
 typedef Rect<float> Padding;      ///< Padding definition
 
 /**
index 18803df..9f459a5 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 // INTERNAL INCLUDES
  */
 
 // INTERNAL INCLUDES
-#include <dali/public-api/common/vector-wrapper.h>
 #include <dali/public-api/object/property.h>
 #include <dali/public-api/object/ref-object.h>
 #include <dali/public-api/actors/actor-enumerations.h>
 #include <dali/public-api/object/property.h>
 #include <dali/public-api/object/ref-object.h>
 #include <dali/public-api/actors/actor-enumerations.h>
index 42219af..fde089a 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 // INTERNAL INCLUDES
  */
 
 // INTERNAL INCLUDES
-#include <dali/public-api/common/vector-wrapper.h>
 #include <dali/public-api/common/dali-common.h>
 #include <dali/public-api/events/touch-point.h>
 
 #include <dali/public-api/common/dali-common.h>
 #include <dali/public-api/events/touch-point.h>
 
index d6b5465..e61c5ff 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 // INTERNAL INCLUDES
  */
 
 // INTERNAL INCLUDES
-#include <dali/public-api/common/vector-wrapper.h>
 #include <dali/public-api/common/dali-common.h>
 #include <dali/public-api/events/touch-point.h>
 
 #include <dali/public-api/common/dali-common.h>
 #include <dali/public-api/events/touch-point.h>
 
index dbcd428..51164b3 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 // INTERNAL INCLUDES
  */
 
 // INTERNAL INCLUDES
-#include <dali/public-api/common/vector-wrapper.h>
 #include <dali/public-api/images/image.h>
 #include <dali/public-api/images/pixel.h>
 #include <dali/public-api/math/rect.h>
 #include <dali/public-api/images/image.h>
 #include <dali/public-api/images/pixel.h>
 #include <dali/public-api/math/rect.h>
index 16a0046..caa2e5c 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 // INTERNAL INCLUDES
  */
 
 // INTERNAL INCLUDES
-#include <dali/public-api/common/vector-wrapper.h>
 #include <dali/public-api/images/resource-image.h>
 #include <dali/public-api/images/buffer-image.h>
 #include <dali/public-api/math/rect.h>
 #include <dali/public-api/images/resource-image.h>
 #include <dali/public-api/images/buffer-image.h>
 #include <dali/public-api/math/rect.h>
index 104dcc0..7e94f88 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 // INTERNAL INCLUDES
  */
 
 // INTERNAL INCLUDES
-#include <dali/public-api/common/vector-wrapper.h>
 #include <dali/public-api/object/base-handle.h>
 
 namespace Dali
 #include <dali/public-api/object/base-handle.h>
 
 namespace Dali