scenario_simulator_v2 C++ API
Public Member Functions | List of all members
traffic_simulator::ConfigurableRateUpdater Class Reference

#include <configurable_rate_updater.hpp>

Public Member Functions

template<typename NodePointer >
 ConfigurableRateUpdater (const NodePointer &node, std::function< void()> thunk)
 
auto startTimer (const double update_rate) -> void
 
auto resetTimer (const double update_rate) -> void
 
auto getUpdateRate () const -> double
 

Constructor & Destructor Documentation

◆ ConfigurableRateUpdater()

template<typename NodePointer >
traffic_simulator::ConfigurableRateUpdater::ConfigurableRateUpdater ( const NodePointer &  node,
std::function< void()>  thunk 
)
inline

Member Function Documentation

◆ getUpdateRate()

auto traffic_simulator::ConfigurableRateUpdater::getUpdateRate ( ) const -> double
inline

◆ resetTimer()

auto traffic_simulator::ConfigurableRateUpdater::resetTimer ( const double  update_rate) -> void

◆ startTimer()

auto traffic_simulator::ConfigurableRateUpdater::startTimer ( const double  update_rate) -> void

The documentation for this class was generated from the following files: