MAK RTIspy API Documentation for HLA 1.3
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 #ifdef DtIFSPEC1516E
10 
11 #include "rtiMsConfig.h"
13 
14 #if !WIN32 && !VXWORKS && !VMS && !__darwin__
15 #include <values.h>
16 #else
17 #if VMS
18 #include <limits>
19 #define MAXDOUBLE numeric_limits<double>::max()
20 #else
21 #define MAXDOUBLE 1.7976931348623157e+308
22 #endif
23 #endif
24 #define FLOAT64_POSITIVE_INFINITY (MAXDOUBLE)
25 #define FLOAT64_EPSILON (0.000000001)
26 #define FLOAT64_ZERO (0.0)
27 
28 namespace rti1516e
29 {
30  class DT_DLL_LRC HLAfloat64IntervalImpl
31  {
32  public:
33 
35  HLAfloat64IntervalImpl();
36  HLAfloat64IntervalImpl(double const & value);
37  HLAfloat64IntervalImpl(HLAfloat64IntervalImpl const & value);
38 
40  virtual ~HLAfloat64IntervalImpl ();
41 
43  virtual void setZero ();
44  virtual bool isZero () const;
45  virtual void setEpsilon ();
46  virtual bool isEpsilon () const;
47 
49  virtual rti1516e::HLAfloat64IntervalImpl& operator= (double value);
50  virtual rti1516e::HLAfloat64IntervalImpl& operator= (const rti1516e::HLAfloat64IntervalImpl& value);
51 
53  virtual rti1516e::HLAfloat64IntervalImpl& operator+= (double addend)
54  throw (rti1516e::IllegalTimeArithmetic);
55 
56  virtual rti1516e::HLAfloat64IntervalImpl& operator-= (double subtrahend)
57  throw (rti1516e::IllegalTimeArithmetic);
58 
59  virtual void setToDifference (double minuend, double subtrahend)
60  throw (rti1516e::IllegalTimeArithmetic);
61 
63  virtual double getInterval () const;
64  virtual void setInterval (double value);
65 
66  protected:
67 
68  double myInterval;
69  static const double theZero;
70  static const double theEpsilon;
71  static const double thePositiveInfinity;
72  };
73 }
74 
75 #endif // DtIFSPEC1516E

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)