2017-01-20 00:20:31 +00:00
|
|
|
// © 2016 and later: Unicode, Inc. and others.
|
2016-06-15 18:58:17 +00:00
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2014-02-10 19:13:50 +00:00
|
|
|
/*
|
|
|
|
******************************************************************************
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (C) 2014, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
2014-02-10 19:13:50 +00:00
|
|
|
******************************************************************************
|
|
|
|
* sharedpluralrules.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SHARED_PLURALRULES_H__
|
|
|
|
#define __SHARED_PLURALRULES_H__
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
#include "sharedobject.h"
|
|
|
|
|
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
class PluralRules;
|
|
|
|
|
|
|
|
class U_I18N_API SharedPluralRules : public SharedObject {
|
|
|
|
public:
|
2014-03-17 18:07:34 +00:00
|
|
|
SharedPluralRules(PluralRules *prToAdopt) : ptr(prToAdopt) { }
|
|
|
|
virtual ~SharedPluralRules();
|
|
|
|
const PluralRules *operator->() const { return ptr; }
|
|
|
|
const PluralRules &operator*() const { return *ptr; }
|
2014-02-10 19:13:50 +00:00
|
|
|
private:
|
2014-03-17 18:07:34 +00:00
|
|
|
PluralRules *ptr;
|
|
|
|
SharedPluralRules(const SharedPluralRules &);
|
|
|
|
SharedPluralRules &operator=(const SharedPluralRules &);
|
2014-02-10 19:13:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
U_NAMESPACE_END
|
|
|
|
|
|
|
|
#endif
|