MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HLAfloat64IntervalImpl1516e.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*********************************************************************
6 ** $RCSfile: logicalTimeImplFloat.cxx,v $ $Revision: 1.4 $ $State: Exp $
7 *********************************************************************/
8 
9 #if !defined(DtIFSPEC13) && !defined(DtIFSPEC1516)
10 
11 #include <rtiMsConfig.h>
12 #include <RTI/time/HLAfloat64Interval.h>
13 #include <rtiApiTypes.h>
14 
15 // Old deprecated stuff, keeping it here in case we support these platforms again
16 // #if !WIN32 && !VXWORKS && !VMS && !__darwin__
17 // #include <values.h>
18 // #else
19 // #if VMS
20 // #include <limits>
21 // #define MAXDOUBLE numeric_limits<double>::max()
22 // #endif
23 
24 #include <float.h>
25 #define FLOAT64_POSITIVE_INFINITY (DBL_MAX)
26 #define FLOAT64_NEGATIVE_INFINITY (-DBL_MAX)
27 #define FLOAT64_EPSILON (DBL_MIN)
28 #define FLOAT64_ZERO (0.0)
29 
30 #ifdef _WIN32
31 #define nextafter _nextafter
32 #endif
33 
34 namespace RTI_API
35 {
37  {
38  public:
39 
42  HLAfloat64IntervalImpl(double const & value);
44 
46  virtual ~HLAfloat64IntervalImpl ();
47 
49  virtual void setZero ();
50  virtual bool isZero () const;
51  virtual void setEpsilon ();
52  virtual bool isEpsilon () const;
53 
55  virtual HLAfloat64IntervalImpl& operator= (double value);
56  virtual HLAfloat64IntervalImpl& operator= (const HLAfloat64IntervalImpl& value);
57 
59  virtual HLAfloat64IntervalImpl& operator+= (double addend)
60  throw (IllegalTimeArithmetic);
61 
62  virtual HLAfloat64IntervalImpl& operator-= (double subtrahend)
63  throw (IllegalTimeArithmetic);
64 
65  virtual bool operator> (double value) const;
66 
67  virtual bool operator< (double value) const;
68 
69  virtual bool operator== (double value) const;
70 
71  virtual bool operator>= (double value) const;
72 
73  virtual bool operator<= (double value) const;
74 
75  virtual void setToDifference (double minuend, double subtrahend)
76  throw (IllegalTimeArithmetic);
77 
79  virtual double getInterval () const;
80  virtual void setInterval (double value);
81 
82  protected:
83 
84  double myInterval;
85  static const double theZero;
86  static const double theEpsilon;
87  static const double thePositiveInfinity;
88  };
89 }
90 
91 #endif
double myInterval
Definition: HLAfloat64IntervalImpl1516e.h:84
static const double theEpsilon
Definition: HLAfloat64IntervalImpl1516e.h:86
static const double theZero
Definition: HLAfloat64IntervalImpl1516e.h:85
static const double thePositiveInfinity
Definition: HLAfloat64IntervalImpl1516e.h:87
Definition: HLAfloat64IntervalImpl1516e.h:36
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)