OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 { | 143 { |
144 } | 144 } |
145 | 145 |
146 virtual ~PODRedBlackTree() { } | 146 virtual ~PODRedBlackTree() { } |
147 | 147 |
148 // Clearing will delete the contents of the tree. After this call | 148 // Clearing will delete the contents of the tree. After this call |
149 // isInitialized will return false. | 149 // isInitialized will return false. |
150 void clear() | 150 void clear() |
151 { | 151 { |
152 markFree(m_root); | 152 markFree(m_root); |
153 m_arena = 0; | 153 m_arena = nullptr; |
154 m_root = 0; | 154 m_root = 0; |
155 } | 155 } |
156 | 156 |
157 bool isInitialized() const | 157 bool isInitialized() const |
158 { | 158 { |
159 return m_arena; | 159 return m_arena; |
160 } | 160 } |
161 | 161 |
162 void initIfNeeded() | 162 void initIfNeeded() |
163 { | 163 { |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 Node* m_root; | 819 Node* m_root; |
820 bool m_needsFullOrderingComparisons; | 820 bool m_needsFullOrderingComparisons; |
821 #ifndef NDEBUG | 821 #ifndef NDEBUG |
822 bool m_verboseDebugging; | 822 bool m_verboseDebugging; |
823 #endif | 823 #endif |
824 }; | 824 }; |
825 | 825 |
826 } // namespace WebCore | 826 } // namespace WebCore |
827 | 827 |
828 #endif // PODRedBlackTree_h | 828 #endif // PODRedBlackTree_h |
OLD | NEW |