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 
15 U_NAMESPACE_BEGIN
16 
17 class PluralRules;
18 
19 class U_I18N_API SharedPluralRules : public SharedObject {
20 public:
SharedPluralRules(PluralRules * prToAdopt)21     SharedPluralRules(PluralRules *prToAdopt) : ptr(prToAdopt) { }
22     virtual ~SharedPluralRules();
23     const PluralRules *operator->() const { return ptr; }
24     const PluralRules &operator*() const { return *ptr; }
25 private:
26     PluralRules *ptr;
27     SharedPluralRules(const SharedPluralRules &);
28     SharedPluralRules &operator=(const SharedPluralRules &);
29 };
30 
31 U_NAMESPACE_END
32 
33 #endif
34