| OLD | NEW |
| 1 /* | 1 /* |
| 2 ********************************************************************** | 2 ********************************************************************** |
| 3 * Copyright (c) 2004-2014, International Business Machines | 3 * Copyright (c) 2004-2015, International Business Machines |
| 4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
| 5 ********************************************************************** | 5 ********************************************************************** |
| 6 * Author: Alan Liu | 6 * Author: Alan Liu |
| 7 * Created: April 26, 2004 | 7 * Created: April 26, 2004 |
| 8 * Since: ICU 3.0 | 8 * Since: ICU 3.0 |
| 9 ********************************************************************** | 9 ********************************************************************** |
| 10 */ | 10 */ |
| 11 #ifndef __MEASURE_H__ | 11 #ifndef __MEASURE_H__ |
| 12 #define __MEASURE_H__ | 12 #define __MEASURE_H__ |
| 13 | 13 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 /** | 102 /** |
| 103 * Return the class ID for this class. This is useful only for comparing to | 103 * Return the class ID for this class. This is useful only for comparing to |
| 104 * a return value from getDynamicClassID(). For example: | 104 * a return value from getDynamicClassID(). For example: |
| 105 * <pre> | 105 * <pre> |
| 106 * . Base* polymorphic_pointer = createPolymorphicObject(); | 106 * . Base* polymorphic_pointer = createPolymorphicObject(); |
| 107 * . if (polymorphic_pointer->getDynamicClassID() == | 107 * . if (polymorphic_pointer->getDynamicClassID() == |
| 108 * . erived::getStaticClassID()) ... | 108 * . erived::getStaticClassID()) ... |
| 109 * </pre> | 109 * </pre> |
| 110 * @return The class ID for all objects of this class. | 110 * @return The class ID for all objects of this class. |
| 111 * @draft ICU 53 | 111 * @stable ICU 53 |
| 112 */ | 112 */ |
| 113 static UClassID U_EXPORT2 getStaticClassID(void); | 113 static UClassID U_EXPORT2 getStaticClassID(void); |
| 114 | 114 |
| 115 /** | 115 /** |
| 116 * Returns a unique class ID POLYMORPHICALLY. Pure virtual override. This | 116 * Returns a unique class ID POLYMORPHICALLY. Pure virtual override. This |
| 117 * method is to implement a simple version of RTTI, since not all C++ | 117 * method is to implement a simple version of RTTI, since not all C++ |
| 118 * compilers support genuine RTTI. Polymorphic operator==() and clone() | 118 * compilers support genuine RTTI. Polymorphic operator==() and clone() |
| 119 * methods call this method. | 119 * methods call this method. |
| 120 * | 120 * |
| 121 * @return The class ID for this object. All objects of a | 121 * @return The class ID for this object. All objects of a |
| 122 * given class have the same class ID. Objects of | 122 * given class have the same class ID. Objects of |
| 123 * other classes have different class IDs. | 123 * other classes have different class IDs. |
| 124 * @draft ICU 53 | 124 * @stable ICU 53 |
| 125 */ | 125 */ |
| 126 virtual UClassID getDynamicClassID(void) const; | 126 virtual UClassID getDynamicClassID(void) const; |
| 127 | 127 |
| 128 protected: | 128 protected: |
| 129 /** | 129 /** |
| 130 * Default constructor. | 130 * Default constructor. |
| 131 * @stable ICU 3.0 | 131 * @stable ICU 3.0 |
| 132 */ | 132 */ |
| 133 Measure(); | 133 Measure(); |
| 134 | 134 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 150 } | 150 } |
| 151 | 151 |
| 152 inline const MeasureUnit& Measure::getUnit() const { | 152 inline const MeasureUnit& Measure::getUnit() const { |
| 153 return *unit; | 153 return *unit; |
| 154 } | 154 } |
| 155 | 155 |
| 156 U_NAMESPACE_END | 156 U_NAMESPACE_END |
| 157 | 157 |
| 158 #endif // !UCONFIG_NO_FORMATTING | 158 #endif // !UCONFIG_NO_FORMATTING |
| 159 #endif // __MEASURE_H__ | 159 #endif // __MEASURE_H__ |
| OLD | NEW |