| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // - operator== | 53 // - operator== |
| 54 // - operator= | 54 // - operator= |
| 55 // | 55 // |
| 56 // If the UserData type is specified, it must support a copy | 56 // If the UserData type is specified, it must support a copy |
| 57 // constructor and assignment operator. | 57 // constructor and assignment operator. |
| 58 // | 58 // |
| 59 // In debug mode, printing of intervals and the data they contain is | 59 // In debug mode, printing of intervals and the data they contain is |
| 60 // enabled. This requires the following template specializations to be | 60 // enabled. This requires the following template specializations to be |
| 61 // available: | 61 // available: |
| 62 // | 62 // |
| 63 // template<> struct blink::ValueToString<T> { | 63 // template<> struct ValueToString<T> { |
| 64 // static String string(const T& t); | 64 // static String string(const T& t); |
| 65 // }; | 65 // }; |
| 66 // template<> struct blink::ValueToString<UserData> { | 66 // template<> struct ValueToString<UserData> { |
| 67 // static String string(const UserData& t); | 67 // static String string(const UserData& t); |
| 68 // }; | 68 // }; |
| 69 // | 69 // |
| 70 // Note that this class requires a copy constructor and assignment | 70 // Note that this class requires a copy constructor and assignment |
| 71 // operator in order to be stored in the red-black tree. | 71 // operator in order to be stored in the red-black tree. |
| 72 | 72 |
| 73 #ifndef NDEBUG | 73 #ifndef NDEBUG |
| 74 template<class T> | 74 template<class T> |
| 75 struct ValueToString; | 75 struct ValueToString; |
| 76 #endif | 76 #endif |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 private: | 154 private: |
| 155 T m_low; | 155 T m_low; |
| 156 T m_high; | 156 T m_high; |
| 157 UserData m_data; | 157 UserData m_data; |
| 158 T m_maxHigh; | 158 T m_maxHigh; |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 } // namespace blink | 161 } // namespace blink |
| 162 | 162 |
| 163 #endif // PODInterval_h | 163 #endif // PODInterval_h |
| OLD | NEW |