Move GLES 3.0 floating point pixel formats to Public API
[platform/core/uifw/dali-core.git] / dali / devel-api / common / dali-vector-devel.h
1 #ifndef DALI_VECTOR_DEVEL_H
2 #define DALI_VECTOR_DEVEL_H
3
4 /*
5  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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
21 // EXTERNAL INCLUDES
22
23 // INTERNAL INCLUDES
24 #include <dali/public-api/common/dali-vector.h>
25
26 namespace Dali
27 {
28 /**
29  * Dali::Vector support for C++11 Range-based for loop: for( item : container )
30  *
31  * @param vector The vector to iterate
32  * @return The start iterator
33  */
34 template< class T >
35 typename T::Iterator begin( T& vector )
36 {
37     return vector.Begin();
38 }
39
40 /**
41  * Dali::Vector support for C++11 Range-based for loop: for( item : container )
42  *
43  * @param vector The vector to iterate
44  * @return The end iterator
45  */
46 template< class T >
47 typename T::Iterator end( T& vector )
48 {
49     return vector.End();
50 }
51
52 } // namespace Dali
53
54 #endif /* DALI_VECTOR_DEVEL_H */