|
rippled
|
A metric for measuring an integral value. More...
#include <Meter.h>

Public Types | |
| using | value_type = MeterImpl::value_type |
Public Member Functions | |
| Meter () | |
| Create a null metric. | |
| Meter (std::shared_ptr< MeterImpl > const &impl) | |
| Create the metric reference the specified implementation. | |
| std::shared_ptr< MeterImpl > const & | impl () const |
| void | increment (value_type amount) const |
| Increment the meter. | |
| Meter const & | operator+= (value_type amount) const |
| Meter const & | operator++ () const |
| Meter const & | operator++ (int) const |
Private Attributes | |
| std::shared_ptr< MeterImpl > | m_impl |
A metric for measuring an integral value.
A meter may be thought of as an increment-only counter.
This is a lightweight reference wrapper which is cheap to copy and assign. When the last reference goes away, the metric is no longer collected.
| beast::insight::Meter::Meter | ( | ) |
|
explicit |
| void beast::insight::Meter::increment | ( | value_type | amount | ) | const |
| Meter const & beast::insight::Meter::operator+= | ( | value_type | amount | ) | const |
| Meter const & beast::insight::Meter::operator++ | ( | int | ) | const |
| std::shared_ptr< MeterImpl > const & beast::insight::Meter::impl | ( | ) | const |
|
private |