CuteHMI - CuteHMI (CuteHMI.2)
|
Namespaces | |
internal | |
Classes | |
struct | Error |
Standarized error. More... | |
class | ErrorException |
Error exception. More... | |
struct | ErrorInfo |
Error info. More... | |
class | Exception |
Exception. More... | |
class | ExceptionMixin |
Exception mixin. More... | |
class | Init |
Init. More... | |
class | Initializer |
Initializer template. More... | |
struct | InplaceError |
In-place error. More... | |
class | Message |
Message. More... | |
class | Messenger |
Messenger. More... | |
class | MPtr |
Members pointer. More... | |
class | NonCopyable |
Non-copyable object. More... | |
class | NonMovable |
Non-movable object. More... | |
class | Notification |
Notification. More... | |
class | NotificationListModel |
Notification list model. More... | |
class | Notifier |
Notifier. More... | |
class | Singleton |
Singleton template. More... | |
class | Worker |
Worker. More... | |
Functions | |
template<typename ERR > | |
ErrorInfo | errorInfo (ERR err) |
Get error info. More... | |
bool | ape (qreal r1, qreal r2, qreal eps=EPS) |
Approximately equal. More... | |
bool | ale (qreal r1, qreal r2, qreal eps=EPS) |
Almost equal. More... | |
bool | clt (qreal r1, qreal r2, qreal eps=EPS) |
Considerably less than. More... | |
bool | cgt (qreal r1, qreal r2, qreal eps=EPS) |
Considerably greater than. More... | |
const QLoggingCategory & | loggingCategory () |
Logging category of the extension. More... | |
CUTEHMI_API void | destroySingletonInstances () |
Destroy singleton instances. More... | |
template<class INPUT_IT , class SIZE , class OUTPUT_IT > | |
OUTPUT_IT | copy_n (INPUT_IT first, SIZE count, OUTPUT_IT result) |
template<class INPUT_IT1 , class INPUT_IT2 > | |
bool | equal (INPUT_IT1 first1, INPUT_IT1 last1, INPUT_IT2 first2) |
Variables | |
constexpr qreal | EPS = std::numeric_limits<qreal>::epsilon() * 0.5 * 0x10000 |
CuteHMI epsilon. More... | |
|
inline |
Almost equal.
Compares real numbers r1, r2. Function similar to ape(), however ale() is slightly stronger than ape() (r1 and r2 must be slightly closer to each other to manifest equality). This function can be problematic, when one of the values is exactly zero, because in such case it returns true
only if second argument is also exactly zero.
r1 | first number to compare. |
r2 | second number to compare. |
eps | epsilon tolerance parameter used in comparison. |
true
when r1 and r2 are almost equal, false
otherwise.
|
inline |
Approximately equal.
Compares real numbers r1, r2.
r1 | first number to compare. |
r2 | second number to compare. |
eps | epsilon tolerance parameter used in comparison. |
true
when r1 and r2 are approximately equal, false
otherwise.
|
inline |
Considerably greater than.
r1 | first number to compare. |
r2 | second number to compare. |
eps | epsilon tolerance parameter used in comparison. |
true
when r1 is considerably greater than r2, false
otherwise.
|
inline |
Considerably less than.
r1 | first number to compare. |
r2 | second number to compare. |
eps | epsilon tolerance parameter used in comparison. |
true
when r1 is considerably less than r2, false
otherwise. OUTPUT_IT cutehmi::copy_n | ( | INPUT_IT | first, |
SIZE | count, | ||
OUTPUT_IT | result | ||
) |
void cutehmi::destroySingletonInstances | ( | ) |
Destroy singleton instances.
This function is provided to satisfy the requirement that QApplication has to be first created and last destroyed QObject. It destroys all singletons that inherit after Singleton class template. Once this function is called singletons become unusable.
bool cutehmi::equal | ( | INPUT_IT1 | first1, |
INPUT_IT1 | last1, | ||
INPUT_IT2 | first2 | ||
) |
ErrorInfo cutehmi::errorInfo | ( | ERR | err | ) |
|
inline |
Logging category of the extension.
|
constexpr |
CuteHMI epsilon.
This constant is used in fuzzy comparison functions.