![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
Simple diagnostics statistics class. More...
#include <laelaps_diag.h>
Public Member Functions | |
| DiagStats () | |
| Constructor. | |
| ~DiagStats () | |
| Destructor. | |
| void | zero () |
| Zero statistics. | |
| DiagStats & | operator+= (const DiagStats &rhs) |
| Compound assignment operator. More... | |
Public Attributes | |
| int | passCnt |
| int | testCnt |
| bool | fatal |
Friends | |
| DiagStats | operator+ (DiagStats lhs, const DiagStats &rhs) |
| Addition operator. More... | |
Simple diagnostics statistics class.
Definition at line 106 of file laelaps_diag.h.
Compound assignment operator.
A compound assignment (does not need to be a member, but often is, to modify any private members). The addition of rhs to *this takes place here.
| rhs | Right hand side object. |
Definition at line 149 of file laelaps_diag.h.
Addition operator.
Friends defined inside class body are inline and are hidden from non-ADL lookup (Argument-Dependent Lookup). Passing lhs by value helps optimize chained a+b+c. Otherwise, both parameters may be const references.
| lhs | Left hand side lvalue. |
| rhs | Right hand side object. |
Definition at line 169 of file laelaps_diag.h.