implement Scalar::GetDouble

This commit is contained in:
Mathieu Lacage
2006-11-03 09:28:29 +01:00
parent c4084caf1e
commit a0a93e6f8d
2 changed files with 7 additions and 1 deletions

View File

@@ -240,7 +240,7 @@ public:
Scalar ();
Scalar (double scalar);
Scalar (TimeUnit<0> scalar);
double Get (void) const;
double GetDouble (void) const;
};
typedef TimeUnit<-1> TimeInvert;

View File

@@ -98,6 +98,12 @@ Scalar::Scalar (double scalar)
: TimeUnit<0> (HighPrecision (scalar))
{}
double
Scalar::GetDouble (void) const
{
return GetHighPrecision ().GetDouble ();
}
}; // namespace ns3