C++ TargetRTS
All Classes Functions Variables Enumerations Enumerator Pages
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#include <ostream>
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 friend RTS_INLINE std::ostream& operator<<(std::ostream& os, const RTReal& rtReal);
40
41 virtual int operator==( const RTDataObject & ) const override;
42
43 virtual const RTObject_class * getClassData( void ) const override;
44 static const RTObject_class classData;
45
46#define RTType_RTReal ( RTReal::classData )
47};
48
50{
51 const void * data;
52 const RTObject_class * type;
53
54 RTS_INLINE RTTypedValue_RTReal( const RTReal & ); //lint !e1931
55 RTS_INLINE RTTypedValue_RTReal( const RTReal &,
56 const RTObject_class * );
57}; //lint !e1712
58
59#if RTS_INLINES
60#include <RTReal.inl>
61#endif
62
63#endif // RTREAL_INCLUDED
64
65#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:50