1#ifndef Cpl_Dm_Mp_Double_h_
2#define Cpl_Dm_Mp_Double_h_
52 :
Numeric<double,
Double>( myModelBase, symbolicName, initialValue )
64 return "Cpl::Dm::Mp::Double";
71 double* other = (
double*) otherData;
This concrete class implements a simple Model Database.
Definition ModelDatabase.h:56
This class provides a concrete implementation for a Point who's data is a double.
Definition Double.h:41
Double(Cpl::Dm::ModelDatabase &myModelBase, const char *symbolicName)
Constructor.
Definition Double.h:45
Cpl::Dm::Subscriber< Double > Observer
Type safe subscriber.
Definition Double.h:58
bool isDataEqual_(const void *otherData) const noexcept
Override parent implementation for 'correct' floating point comparison.
Definition Double.h:69
const char * getTypeAsText() const noexcept
See Cpl::Dm::ModelPoint.
Definition Double.h:62
Double(Cpl::Dm::ModelDatabase &myModelBase, const char *symbolicName, double initialValue)
Constructor. Valid MP. Requires an initial value.
Definition Double.h:51
This template class provides a mostly concrete implementation for a Model Point who's data is a C num...
Definition Numeric.h:64
double m_data
The element's value.
Definition Numeric.h:67
This template class defines a type safe Subscriber.
Definition Subscriber.h:82
bool areDoublesEqual(double a, double b, double epsilon=CPL_MATH_REAL_DOUBLE_EPSILON)
This method is short hand for almostEquals<double> AND provides a default epsilon.
Definition real.h:94
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20
This file contains a collection of methods comparing, manipulating, etc.