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