Fix code to not include std set directly
[platform/core/uifw/dali-core.git] / dali / internal / event / text / glyph-status / debug / glyph-status-container-debug.h
1 #ifndef __DALI_INTERNAL_GLYPH_STATUS_CONTAINER_DEBUG_H__
2 #define __DALI_INTERNAL_GLYPH_STATUS_CONTAINER_DEBUG_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 // un-comment to enable
21 //#define DEBUG_GLYPH_STATUS_CONTAINER
22
23 #ifdef DEBUG_GLYPH_STATUS_CONTAINER
24
25 // INTERNAL INCLUDES
26 #include <dali/public-api/common/set-wrapper.h>
27 #include <dali/internal/event/text/glyph-status/glyph-status.h>
28
29 namespace Dali
30 {
31
32 namespace Internal
33 {
34
35 // typedefs are only defined if  DEBUG_GLYPH_STATUS_CONTAINER is enabled
36 typedef std::set< GlyphStatus, GlyphStatus::Comparator > StatusSet;
37 typedef std::set< const GlyphStatus*, GlyphStatus::PointerComparator > StatusPointerSet;
38
39 /**
40  * If DEBUG_GLYPH_STATUS_CONTAINER is defined, it will display
41  * the following whenever an item is inserted / reference /un-referenced / deleted
42  *
43  * ----- Glyph Status Container ---
44  * Character 46 ".", Font 0, High Q Loaded , Ref count: 0 : ~DEAD~
45  * Character 72 "H", Font 0, High Q Loaded , Ref count: 1
46  * Character 78 "N", Font 0, High Q Loaded , Ref count: 1
47  * Character 97 "a", Font 0, High Q Loaded , Ref count: 1
48  * Character 100 "d", Font 0, High Q Loaded , Ref count: 1
49  * Character 101 "e", Font 0, High Q Loaded , Ref count: 2
50  * Character 108 "l", Font 0, High Q Loaded , Ref count: 2
51  * Character 111 "o", Font 0, High Q Loaded , Ref count: 3
52  * Character 112 "p", Font 0, High Q Loaded , Ref count: 1
53  * Character 114 "r", Font 0, High Q Loaded , Ref count: 0 : ~DEAD~
54  * Character 116 "t", Font 0, High Q Loaded , Ref count: 1
55  * Character 119 "w", Font 0, High Q Loaded , Ref count: 1
56  * -------------------
57  * -----Dead List------
58  * Character 46 ".", Font 0, Ref count: 0, High Q Loaded , Dead Time: 0
59  * Character 114 "r", Font 0, Ref count: 0, High Q Loaded , Dead Time: 1
60  * -------------------
61  * Atlas Size: 16, Used Space 10, Dead size (cached): 2
62  * -------------------
63  *
64  * @param atlasSize, the size of the container
65  * @param statusSet glyph status set
66  * @param deadSet set of dead glyphs
67  */
68 void DebugGlyphContainer( unsigned int atlasSize,
69                           StatusSet statusSet,
70                           StatusPointerSet deadSet);
71
72
73 } // namespace Internal
74
75 } // namespace Dali
76
77 #endif // DEBUG_GLYPH_STATUS_CONTAINER
78 #endif // __DALI_INTERNAL_GLYPH_STATUS_CONTAINER_H__