2 ******************************************************************************
3 * Copyright (C) 2014, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 ******************************************************************************
9 #ifndef __SHARED_NUMBERFORMAT_H__
10 #define __SHARED_NUMBERFORMAT_H__
12 #include "unicode/utypes.h"
13 #include "sharedobject.h"
19 class U_I18N_API SharedNumberFormat
: public SharedObject
{
21 SharedNumberFormat(NumberFormat
*nfToAdopt
) : ptr(nfToAdopt
) { }
22 virtual ~SharedNumberFormat();
23 const NumberFormat
*get() const { return ptr
; }
24 const NumberFormat
*operator->() const { return ptr
; }
25 const NumberFormat
&operator*() const { return *ptr
; }
28 SharedNumberFormat(const SharedNumberFormat
&);
29 SharedNumberFormat
&operator=(const SharedNumberFormat
&);