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
38 virtual int operator==( const RTDataObject & ) const override;
39
40 virtual const RTObject_class * getClassData( void ) const override;
41 static const RTObject_class classData;
42
43#define RTType_RTReal ( RTReal::classData )
44};
45
47{
48 const void * data;
49 const RTObject_class * type;
50
51 RTS_INLINE RTTypedValue_RTReal( const RTReal & ); //lint !e1931
52 RTS_INLINE RTTypedValue_RTReal( const RTReal &,
53 const RTObject_class * );
54}; //lint !e1712
55
56#if RTS_INLINES
57#include <RTReal.inl>
58#endif
59
60#endif // RTREAL_INCLUDED
61
62#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:47