NC::OscProb::SafeDouble Class Reference

Wrap a double so that use of it uninitialized is detected. More...

#include <NCOscProb.h>

List of all members.

Public Member Functions

 SafeDouble ()
 SafeDouble (double val)
 operator double () const
bool Uninitialized () const

Protected Attributes

double fVal

Detailed Description

Wrap a double so that use of it uninitialized is detected.

Definition at line 30 of file NCOscProb.h.


Constructor & Destructor Documentation

NC::OscProb::SafeDouble::SafeDouble (  )  [inline]

Definition at line 33 of file NCOscProb.h.

00033 : fVal(kUninitialized) {}

NC::OscProb::SafeDouble::SafeDouble ( double  val  )  [inline]

Definition at line 34 of file NCOscProb.h.

00034 : fVal(val) {}


Member Function Documentation

NC::OscProb::SafeDouble::operator double (  )  const [inline]

Definition at line 35 of file NCOscProb.h.

References fVal, and Uninitialized().

00036     {
00037       assert(!Uninitialized());
00038 
00039       return fVal;
00040     }

bool NC::OscProb::SafeDouble::Uninitialized (  )  const [inline]

Member Data Documentation

double NC::OscProb::SafeDouble::fVal [protected]

Definition at line 43 of file NCOscProb.h.

Referenced by operator double(), and Uninitialized().


The documentation for this class was generated from the following file:

Generated on 15 Nov 2018 for loon by  doxygen 1.6.1