1 /* 2 ****************************************************************************** 3 * Copyright (C) 2014, International Business Machines 4 * Corporation and others. All Rights Reserved. 5 ****************************************************************************** 6 * sharedpluralrules.h 7 */ 8 9 #ifndef __SHARED_PLURALRULES_H__ 10 #define __SHARED_PLURALRULES_H__ 11 12 #include "unicode/utypes.h" 13 #include "sharedobject.h" 14 #include "sharedptr.h" 15 16 U_NAMESPACE_BEGIN 17 18 class PluralRules; 19 20 class U_I18N_API SharedPluralRules : public SharedObject { 21 public: 22 SharedPluralRules(PluralRules *prToAdopt) : ptr(prToAdopt) { } 23 virtual ~SharedPluralRules(); 24 const PluralRules *operator->() const { return ptr; } 25 const PluralRules &operator*() const { return *ptr; } 26 private: 27 PluralRules *ptr; 28 SharedPluralRules(const SharedPluralRules &); 29 SharedPluralRules &operator=(const SharedPluralRules &); 30 }; 31 32 U_NAMESPACE_END 33 34 #endif 35