1#ifndef Cpl_Dm_Mp_Float_h_
2#define Cpl_Dm_Mp_Float_h_
52 :
Numeric<float,
Float>( myModelBase, symbolicName, initialValue )
65 return "Cpl::Dm::Mp::Float";
72 float* other = (
float*) 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 float.
Definition Float.h:41
const char * getTypeAsText() const noexcept
See Cpl::Dm::ModelPoint.
Definition Float.h:63
Cpl::Dm::Subscriber< Float > Observer
Type safe subscriber.
Definition Float.h:58
Float(Cpl::Dm::ModelDatabase &myModelBase, const char *symbolicName, float initialValue)
Constructor. Valid MP. Requires an initial value.
Definition Float.h:51
bool isDataEqual_(const void *otherData) const noexcept
Override parent implementation for 'correct' floating point comparison.
Definition Float.h:70
Float(Cpl::Dm::ModelDatabase &myModelBase, const char *symbolicName)
Constructor.
Definition Float.h:45
This template class provides a mostly concrete implementation for a Model Point who's data is a C num...
Definition Numeric.h:64
float m_data
The element's value.
Definition Numeric.h:67
This template class defines a type safe Subscriber.
Definition Subscriber.h:82
bool areFloatsEqual(float a, float b, float epsilon=CPL_MATH_REAL_FLOAT_EPSILON)
This method is short hand for almostEquals<float> AND provides a default epsilon.
Definition real.h:86
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.