]> git.saurik.com Git - apple/icu.git/blame - icuSources/i18n/sharedcalendar.h
ICU-64243.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / sharedcalendar.h
CommitLineData
f3c0d7a5
A
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
b331163b
A
3/*
4******************************************************************************
5* Copyright (C) 2014, International Business Machines
6* Corporation and others. All Rights Reserved.
7******************************************************************************
8* sharedcalendar.h
9*/
10
11#ifndef __SHARED_CALENDAR_H__
12#define __SHARED_CALENDAR_H__
13
14#include "unicode/utypes.h"
15#include "sharedobject.h"
16
17U_NAMESPACE_BEGIN
18
19class Calendar;
20
21class U_I18N_API SharedCalendar : public SharedObject {
22public:
23 SharedCalendar(Calendar *calToAdopt) : ptr(calToAdopt) { }
24 virtual ~SharedCalendar();
25 const Calendar *get() const { return ptr; }
26 const Calendar *operator->() const { return ptr; }
27 const Calendar &operator*() const { return *ptr; }
28private:
29 Calendar *ptr;
30 SharedCalendar(const SharedCalendar &);
31 SharedCalendar &operator=(const SharedCalendar &);
32};
33
34U_NAMESPACE_END
35
36#endif