C++ TargetRTS
Loading...
Searching...
No Matches
RTReal.h
1/*
2 * Licensed Materials - Property of HCL and/or IBM
3 * Copyright HCL Technologies Ltd. 2016, 2021. All Rights Reserved.
4 * Copyright IBM Corporation 1999, 2016. All Rights Reserved.
5 *
6 * U.S. Government Users Restricted Rights - Use, duplication or
7 * disclosure restricted by GSA ADP Schedule.
8 */
9
10#ifndef __RTReal_h__
11#define __RTReal_h__ included
12
13#ifdef PRAGMA
14#pragma interface
15#endif
16
17#ifndef __RTDataObject_h__
18#include <RTDataObject.h>
19#endif
20
21#if RTREAL_INCLUDED
22
23class RTReal : public RTDataObject
24{
25public:
26 double value;
27
28 explicit RTReal( double = 0.0 );
29 RTReal( const RTReal & );
30 virtual ~RTReal( void );
31
32 RTReal & operator=( double );
33 RTReal & operator=( const RTReal & );
34
35 operator float ( void ) const;
36 operator double ( void ) const;
37 operator long double ( void ) const;
38
39 virtual int operator==( const RTDataObject & ) const override;
40
41 virtual const RTObject_class * getClassData( void ) const override;
42 static const RTObject_class classData;
43
44#define RTType_RTReal ( RTReal::classData )
45};
46
48{
49 const void * data;
50 const RTObject_class * type;
51
52 RTS_INLINE RTTypedValue_RTReal( const RTReal & ); //lint !e1931
53 RTS_INLINE RTTypedValue_RTReal( const RTReal &,
54 const RTObject_class * );
55}; //lint !e1712
56
57#if RTS_INLINES
58#include <RTReal.inl>
59#endif
60
61#endif // RTREAL_INCLUDED
62
63#endif // __RTReal_h__
Provides a common interface to certain data type implementations (e.g.
Definition: RTDataObject.h:33
Definition: RTReal.h:24
A type descriptor providing information about a type.
Definition: RTObject_class.h:64
Definition: RTReal.h:48