Dynamical system model
Loading...
Searching...
No Matches
dsf::mobility::Counter Class Reference

The Counter class is used to count events. More...

#include <Sensors.hpp>

Public Member Functions

void setName (std::string const &name)
Counteroperator++ ()
void reset ()
auto const & name () const noexcept
 Get the name of the counter.
auto value () const noexcept
 Get the value of the counter.

Protected Attributes

std::string m_name {"N/A"}
std::size_t m_counter {0}

Detailed Description

The Counter class is used to count events.

Member Function Documentation

◆ name()

auto const & dsf::mobility::Counter::name ( ) const
inlinenoexcept

Get the name of the counter.

Returns
The name of the counter

◆ value()

auto dsf::mobility::Counter::value ( ) const
inlinenoexcept

Get the value of the counter.

Returns
The value of the counter

The documentation for this class was generated from the following file:
  • src/dsf/mobility/Sensors.hpp