| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkTSet_DEFINED | 8 #ifndef SkTSet_DEFINED |
| 9 #define SkTSet_DEFINED | 9 #define SkTSet_DEFINED |
| 10 | 10 |
| 11 #include "SkTDArray.h" | 11 #include "SkTDArray.h" |
| 12 #include "SkTypes.h" | 12 #include "SkTypes.h" |
| 13 | 13 |
| 14 template <typename T> class SK_API SkTSet; |
| 15 |
| 14 /** \class SkTSet<T> | 16 /** \class SkTSet<T> |
| 15 | 17 |
| 16 The SkTSet template class defines a set. | 18 The SkTSet template class defines a set. |
| 17 Main operations supported now are: add, merge, find and contains. | 19 Main operations supported now are: add, merge, find and contains. |
| 18 | 20 |
| 19 TSet<T> is mutable. | 21 TSet<T> is mutable. |
| 20 */ | 22 */ |
| 21 | 23 |
| 22 // TODO: Add remove, intersect and difference operations. | 24 // TODO: Add remove, intersect and difference operations. |
| 23 // TODO: Add bench tests. | 25 // TODO: Add bench tests. |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 } | 273 } |
| 272 return true; | 274 return true; |
| 273 } | 275 } |
| 274 #endif | 276 #endif |
| 275 | 277 |
| 276 private: | 278 private: |
| 277 SkTDArray<T>* fArray; | 279 SkTDArray<T>* fArray; |
| 278 }; | 280 }; |
| 279 | 281 |
| 280 #endif | 282 #endif |
| OLD | NEW |