OLD | NEW |
1 | 1 |
2 //---------------------------------------------------------------------------- | 2 //---------------------------------------------------------------------------- |
3 // Anti-Grain Geometry - Version 2.3 | 3 // Anti-Grain Geometry - Version 2.3 |
4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) | 4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) |
5 // | 5 // |
6 // Permission to copy, use, modify, sell and distribute this software | 6 // Permission to copy, use, modify, sell and distribute this software |
7 // is granted provided this copyright notice appears in all copies. | 7 // is granted provided this copyright notice appears in all copies. |
8 // This software is provided "as is" without express or implied | 8 // This software is provided "as is" without express or implied |
9 // warranty, and with no claim as to its suitability for any purpose. | 9 // warranty, and with no claim as to its suitability for any purpose. |
10 // | 10 // |
11 //---------------------------------------------------------------------------- | 11 //---------------------------------------------------------------------------- |
12 // Contact: mcseem@antigrain.com | 12 // Contact: mcseem@antigrain.com |
13 // mcseemagg@yahoo.com | 13 // mcseemagg@yahoo.com |
14 // http://www.antigrain.com | 14 // http://www.antigrain.com |
15 //---------------------------------------------------------------------------- | 15 //---------------------------------------------------------------------------- |
16 #ifndef AGG_ARRAY_INCLUDED | 16 #ifndef AGG_ARRAY_INCLUDED |
17 #define AGG_ARRAY_INCLUDED | 17 #define AGG_ARRAY_INCLUDED |
18 | 18 |
19 #include "agg_basics.h" | 19 #include "agg_basics.h" |
20 #include "core/include/fxcrt/fx_memory.h" // For FXSYS_* macros. | 20 #include "core/fxcrt/include/fx_memory.h" // For FXSYS_* macros. |
21 | 21 |
22 namespace agg | 22 namespace agg |
23 { | 23 { |
24 template <class T> | 24 template <class T> |
25 class pod_array { | 25 class pod_array { |
26 public: | 26 public: |
27 typedef T value_type; | 27 typedef T value_type; |
28 ~pod_array() | 28 ~pod_array() |
29 { | 29 { |
30 FX_Free(m_array); | 30 FX_Free(m_array); |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 quick_sort_threshold = 9 | 500 quick_sort_threshold = 9 |
501 }; | 501 }; |
502 template<class T> inline void swap_elements(T& a, T& b) | 502 template<class T> inline void swap_elements(T& a, T& b) |
503 { | 503 { |
504 T temp = a; | 504 T temp = a; |
505 a = b; | 505 a = b; |
506 b = temp; | 506 b = temp; |
507 } | 507 } |
508 } | 508 } |
509 #endif | 509 #endif |
OLD | NEW |