(cleanup) Stop including std::vector directly inside dali
[platform/core/uifw/dali-core.git] / dali / internal / update / gestures / pan-gesture-profiling.h
1 #ifndef __DALI_INTERNAL_PAN_GESTURE_PROFILING_H__
2 #define __DALI_INTERNAL_PAN_GESTURE_PROFILING_H__
3
4 //
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
6 //
7 // Licensed under the Flora License, Version 1.0 (the License);
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
10 //
11 //     http://floralicense.org/license/
12 //
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an AS IS BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
18 //
19
20 // INTERNAL INCLUDES
21 #include <dali/public-api/math/vector2.h>
22 #include <dali/public-api/common/vector-wrapper.h>
23
24 namespace Dali
25 {
26
27 namespace Internal
28 {
29
30 struct PanGestureProfiling
31 {
32   struct Position
33   {
34     Position( unsigned int time, Vector2 position )
35     : time( time ), position( position )
36     {
37     }
38
39     unsigned int time;
40     Vector2 position;
41   };
42
43   typedef std::vector< PanGestureProfiling::Position > PanPositionContainer;
44
45   void PrintData() const;
46
47   void PrintData( const PanPositionContainer& dataContainer, const char * const prefix ) const;
48
49   void ClearData();
50
51   PanPositionContainer mRawData;
52   PanPositionContainer mLatestData;
53   PanPositionContainer mAveragedData;
54 };
55
56
57 } // namespace Internal
58
59 } // namespace Dali
60
61 #endif // __DALI_INTERNAL_PAN_GESTURE_PROFILING_H__