/src/icu/icu4c/source/common/unicode/uobject.h
Line | Count | Source |
1 | | // © 2016 and later: Unicode, Inc. and others. |
2 | | // License & terms of use: http://www.unicode.org/copyright.html |
3 | | /* |
4 | | ****************************************************************************** |
5 | | * |
6 | | * Copyright (C) 2002-2012, International Business Machines |
7 | | * Corporation and others. All Rights Reserved. |
8 | | * |
9 | | ****************************************************************************** |
10 | | * file name: uobject.h |
11 | | * encoding: UTF-8 |
12 | | * tab size: 8 (not used) |
13 | | * indentation:4 |
14 | | * |
15 | | * created on: 2002jun26 |
16 | | * created by: Markus W. Scherer |
17 | | */ |
18 | | |
19 | | #ifndef __UOBJECT_H__ |
20 | | #define __UOBJECT_H__ |
21 | | |
22 | | #include "unicode/utypes.h" |
23 | | |
24 | | #if U_SHOW_CPLUSPLUS_API |
25 | | |
26 | | #include "unicode/platform.h" |
27 | | |
28 | | /** |
29 | | * \file |
30 | | * \brief C++ API: Common ICU base class UObject. |
31 | | */ |
32 | | |
33 | | /** |
34 | | * \def U_NO_THROW |
35 | | * Since ICU 64, use noexcept instead. |
36 | | * |
37 | | * Previously, define this to define the throw() specification so |
38 | | * certain functions do not throw any exceptions |
39 | | * |
40 | | * UMemory operator new methods should have the throw() specification |
41 | | * appended to them, so that the compiler adds the additional nullptr check |
42 | | * before calling constructors. Without, if <code>operator new</code> returns nullptr the |
43 | | * constructor is still called, and if the constructor references member |
44 | | * data, (which it typically does), the result is a segmentation violation. |
45 | | * |
46 | | * @stable ICU 4.2. Since ICU 64, Use noexcept instead. See ICU-20422. |
47 | | */ |
48 | | #ifndef U_NO_THROW |
49 | | #define U_NO_THROW noexcept |
50 | | #endif |
51 | | |
52 | | /*===========================================================================*/ |
53 | | /* UClassID-based RTTI */ |
54 | | /*===========================================================================*/ |
55 | | |
56 | | /** |
57 | | * UClassID is used to identify classes without using the compiler's RTTI. |
58 | | * This was used before C++ compilers consistently supported RTTI. |
59 | | * ICU 4.6 requires compiler RTTI to be turned on. |
60 | | * |
61 | | * Each class hierarchy which needs |
62 | | * to implement polymorphic clone() or operator==() defines two methods, |
63 | | * described in detail below. UClassID values can be compared using |
64 | | * operator==(). Nothing else should be done with them. |
65 | | * |
66 | | * \par |
67 | | * In class hierarchies that implement "poor man's RTTI", |
68 | | * each concrete subclass implements getDynamicClassID() in the same way: |
69 | | * |
70 | | * \code |
71 | | * class Derived { |
72 | | * public: |
73 | | * virtual UClassID getDynamicClassID() const |
74 | | * { return Derived::getStaticClassID(); } |
75 | | * } |
76 | | * \endcode |
77 | | * |
78 | | * Each concrete class implements getStaticClassID() as well, which allows |
79 | | * clients to test for a specific type. |
80 | | * |
81 | | * \code |
82 | | * class Derived { |
83 | | * public: |
84 | | * static UClassID U_EXPORT2 getStaticClassID(); |
85 | | * private: |
86 | | * static char fgClassID; |
87 | | * } |
88 | | * |
89 | | * // In Derived.cpp: |
90 | | * UClassID Derived::getStaticClassID() |
91 | | * { return (UClassID)&Derived::fgClassID; } |
92 | | * char Derived::fgClassID = 0; // Value is irrelevant |
93 | | * \endcode |
94 | | * @stable ICU 2.0 |
95 | | */ |
96 | | typedef void* UClassID; |
97 | | |
98 | | U_NAMESPACE_BEGIN |
99 | | |
100 | | /** |
101 | | * UMemory is the common ICU base class. |
102 | | * All other ICU C++ classes are derived from UMemory (starting with ICU 2.4). |
103 | | * |
104 | | * This is primarily to make it possible and simple to override the |
105 | | * C++ memory management by adding new/delete operators to this base class. |
106 | | * |
107 | | * To override ALL ICU memory management, including that from plain C code, |
108 | | * replace the allocation functions declared in cmemory.h |
109 | | * |
110 | | * UMemory does not contain any virtual functions. |
111 | | * Common "boilerplate" functions are defined in UObject. |
112 | | * |
113 | | * @stable ICU 2.4 |
114 | | */ |
115 | | class U_COMMON_API UMemory { |
116 | | public: |
117 | | |
118 | | /* test versions for debugging shaper heap memory problems */ |
119 | | #ifdef SHAPER_MEMORY_DEBUG |
120 | | static void * NewArray(int size, int count); |
121 | | static void * GrowArray(void * array, int newSize ); |
122 | | static void FreeArray(void * array ); |
123 | | #endif |
124 | | |
125 | | #if U_OVERRIDE_CXX_ALLOCATION |
126 | | /** |
127 | | * Override for ICU4C C++ memory management. |
128 | | * simple, non-class types are allocated using the macros in common/cmemory.h |
129 | | * (uprv_malloc(), uprv_free(), uprv_realloc()); |
130 | | * they or something else could be used here to implement C++ new/delete |
131 | | * for ICU4C C++ classes |
132 | | * @stable ICU 2.4 |
133 | | */ |
134 | | static void * U_EXPORT2 operator new(size_t size) noexcept; |
135 | | |
136 | | /** |
137 | | * Override for ICU4C C++ memory management. |
138 | | * See new(). |
139 | | * @stable ICU 2.4 |
140 | | */ |
141 | | static void * U_EXPORT2 operator new[](size_t size) noexcept; |
142 | | |
143 | | /** |
144 | | * Override for ICU4C C++ memory management. |
145 | | * simple, non-class types are allocated using the macros in common/cmemory.h |
146 | | * (uprv_malloc(), uprv_free(), uprv_realloc()); |
147 | | * they or something else could be used here to implement C++ new/delete |
148 | | * for ICU4C C++ classes |
149 | | * @stable ICU 2.4 |
150 | | */ |
151 | | static void U_EXPORT2 operator delete(void *p) noexcept; |
152 | | |
153 | | /** |
154 | | * Override for ICU4C C++ memory management. |
155 | | * See delete(). |
156 | | * @stable ICU 2.4 |
157 | | */ |
158 | | static void U_EXPORT2 operator delete[](void *p) noexcept; |
159 | | |
160 | | /** |
161 | | * Override for ICU4C C++ memory management for STL. |
162 | | * See new(). |
163 | | * @stable ICU 2.6 |
164 | | */ |
165 | 11 | static inline void * U_EXPORT2 operator new(size_t, void *ptr) noexcept { return ptr; } |
166 | | |
167 | | /** |
168 | | * Override for ICU4C C++ memory management for STL. |
169 | | * See delete(). |
170 | | * @stable ICU 2.6 |
171 | | */ |
172 | 0 | static inline void U_EXPORT2 operator delete(void *, void *) noexcept {} |
173 | | |
174 | | #if U_HAVE_DEBUG_LOCATION_NEW |
175 | | /** |
176 | | * This method overrides the MFC debug version of the operator new |
177 | | * |
178 | | * @param size The requested memory size |
179 | | * @param file The file where the allocation was requested |
180 | | * @param line The line where the allocation was requested |
181 | | */ |
182 | | static void * U_EXPORT2 operator new(size_t size, const char* file, int line) noexcept; |
183 | | /** |
184 | | * This method provides a matching delete for the MFC debug new |
185 | | * |
186 | | * @param p The pointer to the allocated memory |
187 | | * @param file The file where the allocation was requested |
188 | | * @param line The line where the allocation was requested |
189 | | */ |
190 | | static void U_EXPORT2 operator delete(void* p, const char* file, int line) noexcept; |
191 | | #endif /* U_HAVE_DEBUG_LOCATION_NEW */ |
192 | | #endif /* U_OVERRIDE_CXX_ALLOCATION */ |
193 | | |
194 | | /* |
195 | | * Assignment operator not declared. The compiler will provide one |
196 | | * which does nothing since this class does not contain any data members. |
197 | | * API/code coverage may show the assignment operator as present and |
198 | | * untested - ignore. |
199 | | * Subclasses need this assignment operator if they use compiler-provided |
200 | | * assignment operators of their own. An alternative to not declaring one |
201 | | * here would be to declare and empty-implement a protected or public one. |
202 | | UMemory &UMemory::operator=(const UMemory &); |
203 | | */ |
204 | | }; |
205 | | |
206 | | /** |
207 | | * UObject is the common ICU "boilerplate" class. |
208 | | * UObject inherits UMemory (starting with ICU 2.4), |
209 | | * and all other public ICU C++ classes |
210 | | * are derived from UObject (starting with ICU 2.2). |
211 | | * |
212 | | * UObject contains common virtual functions, in particular a virtual destructor. |
213 | | * |
214 | | * The clone() function is not available in UObject because it is not |
215 | | * implemented by all ICU classes. |
216 | | * Many ICU services provide a clone() function for their class trees, |
217 | | * defined on the service's C++ base class |
218 | | * (which itself is a subclass of UObject). |
219 | | * |
220 | | * @stable ICU 2.2 |
221 | | */ |
222 | | class U_COMMON_API UObject : public UMemory { |
223 | | public: |
224 | | /** |
225 | | * Destructor. |
226 | | * |
227 | | * @stable ICU 2.2 |
228 | | */ |
229 | | virtual ~UObject(); |
230 | | |
231 | | /** |
232 | | * ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. |
233 | | * The base class implementation returns a dummy value. |
234 | | * |
235 | | * Use compiler RTTI rather than ICU's "poor man's RTTI". |
236 | | * Since ICU 4.6, new ICU C++ class hierarchies do not implement "poor man's RTTI". |
237 | | * |
238 | | * @stable ICU 2.2 |
239 | | */ |
240 | | virtual UClassID getDynamicClassID() const; |
241 | | |
242 | | protected: |
243 | | // the following functions are protected to prevent instantiation and |
244 | | // direct use of UObject itself |
245 | | |
246 | | // default constructor |
247 | | // inline UObject() {} |
248 | | |
249 | | // copy constructor |
250 | | // inline UObject(const UObject &other) {} |
251 | | |
252 | | #if 0 |
253 | | // TODO Sometime in the future. Implement operator==(). |
254 | | // (This comment inserted in 2.2) |
255 | | // some or all of the following "boilerplate" functions may be made public |
256 | | // in a future ICU4C release when all subclasses implement them |
257 | | |
258 | | // assignment operator |
259 | | // (not virtual, see "Taligent's Guide to Designing Programs" pp.73..74) |
260 | | // commented out because the implementation is the same as a compiler's default |
261 | | // UObject &operator=(const UObject &other) { return *this; } |
262 | | |
263 | | // comparison operators |
264 | | virtual inline bool operator==(const UObject &other) const { return this==&other; } |
265 | | inline bool operator!=(const UObject &other) const { return !operator==(other); } |
266 | | |
267 | | // clone() commented out from the base class: |
268 | | // some compilers do not support co-variant return types |
269 | | // (i.e., subclasses would have to return UObject * as well, instead of SubClass *) |
270 | | // see also UObject class documentation. |
271 | | // virtual UObject *clone() const; |
272 | | #endif |
273 | | |
274 | | /* |
275 | | * Assignment operator not declared. The compiler will provide one |
276 | | * which does nothing since this class does not contain any data members. |
277 | | * API/code coverage may show the assignment operator as present and |
278 | | * untested - ignore. |
279 | | * Subclasses need this assignment operator if they use compiler-provided |
280 | | * assignment operators of their own. An alternative to not declaring one |
281 | | * here would be to declare and empty-implement a protected or public one. |
282 | | UObject &UObject::operator=(const UObject &); |
283 | | */ |
284 | | }; |
285 | | |
286 | | #ifndef U_HIDE_INTERNAL_API |
287 | | /** |
288 | | * This is a simple macro to add ICU RTTI to an ICU object implementation. |
289 | | * This does not go into the header. This should only be used in *.cpp files. |
290 | | * |
291 | | * @param myClass The name of the class that needs RTTI defined. |
292 | | * @internal |
293 | | */ |
294 | | #define UOBJECT_DEFINE_RTTI_IMPLEMENTATION(myClass) \ |
295 | 0 | UClassID U_EXPORT2 myClass::getStaticClassID() { \ |
296 | 0 | static char classID = 0; \ |
297 | 0 | return (UClassID)&classID; \ |
298 | 0 | } \ Unexecuted instantiation: icu_78::NumberingSystem::getStaticClassID() Unexecuted instantiation: icu_78::NumsysNameEnumeration::getStaticClassID() Unexecuted instantiation: icu_78::RegexMatcher::getStaticClassID() Unexecuted instantiation: icu_78::RegexPattern::getStaticClassID() Unexecuted instantiation: icu_78::Locale::getStaticClassID() Unexecuted instantiation: icu_78::RuleBasedBreakIterator::getStaticClassID() Unexecuted instantiation: icu_78::ICUServiceKey::getStaticClassID() Unexecuted instantiation: icu_78::SimpleFactory::getStaticClassID() Unexecuted instantiation: icu_78::ServiceListener::getStaticClassID() Unexecuted instantiation: icu_78::LocaleKeyFactory::getStaticClassID() Unexecuted instantiation: icu_78::ServiceEnumeration::getStaticClassID() Unexecuted instantiation: icu_78::EventListener::getStaticClassID() Unexecuted instantiation: icu_78::ICUResourceBundleFactory::getStaticClassID() Unexecuted instantiation: icu_78::SimpleLocaleKeyFactory::getStaticClassID() Unexecuted instantiation: icu_78::UCharCharacterIterator::getStaticClassID() Unexecuted instantiation: icu_78::UnicodeSet::getStaticClassID() Unexecuted instantiation: icu_78::UnicodeString::getStaticClassID() Unexecuted instantiation: icu_78::UStack::getStaticClassID() Unexecuted instantiation: icu_78::WholeStringBreakIterator::getStaticClassID() Unexecuted instantiation: icu_78::UStringEnumeration::getStaticClassID() Unexecuted instantiation: icu_78::UVector::getStaticClassID() Unexecuted instantiation: icu_78::UVector32::getStaticClassID() Unexecuted instantiation: icu_78::UVector64::getStaticClassID() Unexecuted instantiation: icu_78::ParsePosition::getStaticClassID() Unexecuted instantiation: icu_78::ResourceBundle::getStaticClassID() Unexecuted instantiation: icu_78::LocaleKey::getStaticClassID() Unexecuted instantiation: icu_78::UnicodeSetIterator::getStaticClassID() Unexecuted instantiation: icu_78::ChineseCalendar::getStaticClassID() Unexecuted instantiation: icu_78::CopticCalendar::getStaticClassID() Unexecuted instantiation: icu_78::DangiCalendar::getStaticClassID() Unexecuted instantiation: icu_78::DateFormatSymbols::getStaticClassID() Unexecuted instantiation: icu_78::EthiopicCalendar::getStaticClassID() Unexecuted instantiation: icu_78::EthiopicAmeteAlemCalendar::getStaticClassID() Unexecuted instantiation: icu_78::GregorianCalendar::getStaticClassID() Unexecuted instantiation: icu_78::HebrewCalendar::getStaticClassID() Unexecuted instantiation: icu_78::IndianCalendar::getStaticClassID() Unexecuted instantiation: icu_78::IslamicCalendar::getStaticClassID() Unexecuted instantiation: icu_78::IslamicCivilCalendar::getStaticClassID() Unexecuted instantiation: icu_78::IslamicUmalquraCalendar::getStaticClassID() Unexecuted instantiation: icu_78::IslamicTBLACalendar::getStaticClassID() Unexecuted instantiation: icu_78::IslamicRGSACalendar::getStaticClassID() Unexecuted instantiation: icu_78::ISO8601Calendar::getStaticClassID() Unexecuted instantiation: icu_78::JapaneseCalendar::getStaticClassID() Unexecuted instantiation: icu_78::OlsonTimeZone::getStaticClassID() Unexecuted instantiation: icu_78::PersianCalendar::getStaticClassID() Unexecuted instantiation: icu_78::PluralRules::getStaticClassID() Unexecuted instantiation: icu_78::PluralKeywordEnumeration::getStaticClassID() Unexecuted instantiation: icu_78::RuleBasedNumberFormat::getStaticClassID() Unexecuted instantiation: icu_78::RuleBasedTimeZone::getStaticClassID() Unexecuted instantiation: icu_78::RuleBasedCollator::getStaticClassID() Unexecuted instantiation: icu_78::SimpleTimeZone::getStaticClassID() Unexecuted instantiation: icu_78::CollationKey::getStaticClassID() Unexecuted instantiation: icu_78::TaiwanCalendar::getStaticClassID() Unexecuted instantiation: icu_78::TZEnumeration::getStaticClassID() Unexecuted instantiation: icu_78::TimeZoneFormat::getStaticClassID() Unexecuted instantiation: icu_78::MetaZoneIDsEnumeration::getStaticClassID() Unexecuted instantiation: icu_78::InitialTimeZoneRule::getStaticClassID() Unexecuted instantiation: icu_78::AnnualTimeZoneRule::getStaticClassID() Unexecuted instantiation: icu_78::TimeArrayTimeZoneRule::getStaticClassID() Unexecuted instantiation: icu_78::TimeZoneTransition::getStaticClassID() Unexecuted instantiation: icu_78::VTimeZone::getStaticClassID() Unexecuted instantiation: icu_78::BuddhistCalendar::getStaticClassID() Unexecuted instantiation: icu_78::CollationElementIterator::getStaticClassID() Unexecuted instantiation: icu_78::CollationLocaleListEnumeration::getStaticClassID() Unexecuted instantiation: icu_78::CurrencyAmount::getStaticClassID() Unexecuted instantiation: icu_78::CurrencyUnit::getStaticClassID() Unexecuted instantiation: icu_78::DecimalFormatSymbols::getStaticClassID() Unexecuted instantiation: icu_78::DecimalFormat::getStaticClassID() Unexecuted instantiation: icu_78::DateTimeRule::getStaticClassID() Unexecuted instantiation: icu_78::Formattable::getStaticClassID() Unexecuted instantiation: icu_78::FieldPosition::getStaticClassID() Unexecuted instantiation: icu_78::MeasureUnit::getStaticClassID() Unexecuted instantiation: icu_78::Measure::getStaticClassID() Unexecuted instantiation: icu_78::NFSubstitution::getStaticClassID() Unexecuted instantiation: icu_78::SameValueSubstitution::getStaticClassID() Unexecuted instantiation: icu_78::MultiplierSubstitution::getStaticClassID() Unexecuted instantiation: icu_78::ModulusSubstitution::getStaticClassID() Unexecuted instantiation: icu_78::IntegralPartSubstitution::getStaticClassID() Unexecuted instantiation: icu_78::FractionalPartSubstitution::getStaticClassID() Unexecuted instantiation: icu_78::AbsoluteValueSubstitution::getStaticClassID() Unexecuted instantiation: icu_78::NumeratorSubstitution::getStaticClassID() Unexecuted instantiation: icu_78::PluralFormat::getStaticClassID() Unexecuted instantiation: icu_78::CurrencyPluralInfo::getStaticClassID() Unexecuted instantiation: icu_78::CanonicalIterator::getStaticClassID() Unexecuted instantiation: icu_78::ChoiceFormat::getStaticClassID() Unexecuted instantiation: icu_78::CompactDecimalFormat::getStaticClassID() Unexecuted instantiation: icu_78::DateTimePatternGenerator::getStaticClassID() Unexecuted instantiation: icu_78::DTSkeletonEnumeration::getStaticClassID() Unexecuted instantiation: icu_78::DTRedundantEnumeration::getStaticClassID() Unexecuted instantiation: icu_78::RegionNameEnumeration::getStaticClassID() Unexecuted instantiation: icu_78::RelativeDateFormat::getStaticClassID() Unexecuted instantiation: icu_78::SimpleDateFormat::getStaticClassID() Unexecuted instantiation: icu_78::MessageFormat::getStaticClassID() Unexecuted instantiation: icu_78::FormatNameEnumeration::getStaticClassID() Unexecuted instantiation: icu_78::number::impl::LocalizedNumberFormatterAsFormat::getStaticClassID() Unexecuted instantiation: icu_78::SelectFormat::getStaticClassID() |
299 | | UClassID myClass::getDynamicClassID() const \ |
300 | 0 | { return myClass::getStaticClassID(); }Unexecuted instantiation: icu_78::NumberingSystem::getDynamicClassID() const Unexecuted instantiation: icu_78::NumsysNameEnumeration::getDynamicClassID() const Unexecuted instantiation: icu_78::RegexMatcher::getDynamicClassID() const Unexecuted instantiation: icu_78::RegexPattern::getDynamicClassID() const Unexecuted instantiation: icu_78::Locale::getDynamicClassID() const Unexecuted instantiation: icu_78::RuleBasedBreakIterator::getDynamicClassID() const Unexecuted instantiation: icu_78::ICUServiceKey::getDynamicClassID() const Unexecuted instantiation: icu_78::SimpleFactory::getDynamicClassID() const Unexecuted instantiation: icu_78::ServiceListener::getDynamicClassID() const Unexecuted instantiation: icu_78::LocaleKeyFactory::getDynamicClassID() const Unexecuted instantiation: icu_78::ServiceEnumeration::getDynamicClassID() const Unexecuted instantiation: icu_78::EventListener::getDynamicClassID() const Unexecuted instantiation: icu_78::ICUResourceBundleFactory::getDynamicClassID() const Unexecuted instantiation: icu_78::SimpleLocaleKeyFactory::getDynamicClassID() const Unexecuted instantiation: icu_78::UCharCharacterIterator::getDynamicClassID() const Unexecuted instantiation: icu_78::UnicodeSet::getDynamicClassID() const Unexecuted instantiation: icu_78::UnicodeString::getDynamicClassID() const Unexecuted instantiation: icu_78::UStack::getDynamicClassID() const Unexecuted instantiation: icu_78::WholeStringBreakIterator::getDynamicClassID() const Unexecuted instantiation: icu_78::UStringEnumeration::getDynamicClassID() const Unexecuted instantiation: icu_78::UVector::getDynamicClassID() const Unexecuted instantiation: icu_78::UVector32::getDynamicClassID() const Unexecuted instantiation: icu_78::UVector64::getDynamicClassID() const Unexecuted instantiation: icu_78::ParsePosition::getDynamicClassID() const Unexecuted instantiation: icu_78::ResourceBundle::getDynamicClassID() const Unexecuted instantiation: icu_78::LocaleKey::getDynamicClassID() const Unexecuted instantiation: icu_78::UnicodeSetIterator::getDynamicClassID() const Unexecuted instantiation: icu_78::ChineseCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::CopticCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::DangiCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::DateFormatSymbols::getDynamicClassID() const Unexecuted instantiation: icu_78::EthiopicCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::EthiopicAmeteAlemCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::GregorianCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::HebrewCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::IndianCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::IslamicCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::IslamicCivilCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::IslamicUmalquraCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::IslamicTBLACalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::IslamicRGSACalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::ISO8601Calendar::getDynamicClassID() const Unexecuted instantiation: icu_78::JapaneseCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::OlsonTimeZone::getDynamicClassID() const Unexecuted instantiation: icu_78::PersianCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::PluralRules::getDynamicClassID() const Unexecuted instantiation: icu_78::PluralKeywordEnumeration::getDynamicClassID() const Unexecuted instantiation: icu_78::RuleBasedNumberFormat::getDynamicClassID() const Unexecuted instantiation: icu_78::RuleBasedTimeZone::getDynamicClassID() const Unexecuted instantiation: icu_78::RuleBasedCollator::getDynamicClassID() const Unexecuted instantiation: icu_78::SimpleTimeZone::getDynamicClassID() const Unexecuted instantiation: icu_78::CollationKey::getDynamicClassID() const Unexecuted instantiation: icu_78::TaiwanCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::TZEnumeration::getDynamicClassID() const Unexecuted instantiation: icu_78::TimeZoneFormat::getDynamicClassID() const Unexecuted instantiation: icu_78::MetaZoneIDsEnumeration::getDynamicClassID() const Unexecuted instantiation: icu_78::InitialTimeZoneRule::getDynamicClassID() const Unexecuted instantiation: icu_78::AnnualTimeZoneRule::getDynamicClassID() const Unexecuted instantiation: icu_78::TimeArrayTimeZoneRule::getDynamicClassID() const Unexecuted instantiation: icu_78::TimeZoneTransition::getDynamicClassID() const Unexecuted instantiation: icu_78::VTimeZone::getDynamicClassID() const Unexecuted instantiation: icu_78::BuddhistCalendar::getDynamicClassID() const Unexecuted instantiation: icu_78::CollationElementIterator::getDynamicClassID() const Unexecuted instantiation: icu_78::CollationLocaleListEnumeration::getDynamicClassID() const Unexecuted instantiation: icu_78::CurrencyAmount::getDynamicClassID() const Unexecuted instantiation: icu_78::CurrencyUnit::getDynamicClassID() const Unexecuted instantiation: icu_78::DecimalFormatSymbols::getDynamicClassID() const Unexecuted instantiation: icu_78::DecimalFormat::getDynamicClassID() const Unexecuted instantiation: icu_78::DateTimeRule::getDynamicClassID() const Unexecuted instantiation: icu_78::Formattable::getDynamicClassID() const Unexecuted instantiation: icu_78::FieldPosition::getDynamicClassID() const Unexecuted instantiation: icu_78::MeasureUnit::getDynamicClassID() const Unexecuted instantiation: icu_78::Measure::getDynamicClassID() const Unexecuted instantiation: icu_78::NFSubstitution::getDynamicClassID() const Unexecuted instantiation: icu_78::SameValueSubstitution::getDynamicClassID() const Unexecuted instantiation: icu_78::MultiplierSubstitution::getDynamicClassID() const Unexecuted instantiation: icu_78::ModulusSubstitution::getDynamicClassID() const Unexecuted instantiation: icu_78::IntegralPartSubstitution::getDynamicClassID() const Unexecuted instantiation: icu_78::FractionalPartSubstitution::getDynamicClassID() const Unexecuted instantiation: icu_78::AbsoluteValueSubstitution::getDynamicClassID() const Unexecuted instantiation: icu_78::NumeratorSubstitution::getDynamicClassID() const Unexecuted instantiation: icu_78::PluralFormat::getDynamicClassID() const Unexecuted instantiation: icu_78::CurrencyPluralInfo::getDynamicClassID() const Unexecuted instantiation: icu_78::CanonicalIterator::getDynamicClassID() const Unexecuted instantiation: icu_78::ChoiceFormat::getDynamicClassID() const Unexecuted instantiation: icu_78::CompactDecimalFormat::getDynamicClassID() const Unexecuted instantiation: icu_78::DateTimePatternGenerator::getDynamicClassID() const Unexecuted instantiation: icu_78::DTSkeletonEnumeration::getDynamicClassID() const Unexecuted instantiation: icu_78::DTRedundantEnumeration::getDynamicClassID() const Unexecuted instantiation: icu_78::RegionNameEnumeration::getDynamicClassID() const Unexecuted instantiation: icu_78::RelativeDateFormat::getDynamicClassID() const Unexecuted instantiation: icu_78::SimpleDateFormat::getDynamicClassID() const Unexecuted instantiation: icu_78::MessageFormat::getDynamicClassID() const Unexecuted instantiation: icu_78::FormatNameEnumeration::getDynamicClassID() const Unexecuted instantiation: icu_78::number::impl::LocalizedNumberFormatterAsFormat::getDynamicClassID() const Unexecuted instantiation: icu_78::SelectFormat::getDynamicClassID() const |
301 | | |
302 | | |
303 | | /** |
304 | | * This macro adds ICU RTTI to an ICU abstract class implementation. |
305 | | * This macro should be invoked in *.cpp files. The corresponding |
306 | | * header should declare getStaticClassID. |
307 | | * |
308 | | * @param myClass The name of the class that needs RTTI defined. |
309 | | * @internal |
310 | | */ |
311 | | #define UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(myClass) \ |
312 | 0 | UClassID U_EXPORT2 myClass::getStaticClassID() { \ |
313 | 0 | static char classID = 0; \ |
314 | 0 | return (UClassID)&classID; \ |
315 | 0 | } Unexecuted instantiation: icu_78::UnicodeFilter::getStaticClassID() Unexecuted instantiation: icu_78::UnicodeFunctor::getStaticClassID() Unexecuted instantiation: icu_78::NumberFormat::getStaticClassID() Unexecuted instantiation: icu_78::TimeZone::getStaticClassID() |
316 | | |
317 | | #endif /* U_HIDE_INTERNAL_API */ |
318 | | |
319 | | U_NAMESPACE_END |
320 | | |
321 | | #endif /* U_SHOW_CPLUSPLUS_API */ |
322 | | |
323 | | #endif |