λ61
|
#include <AbstractTimer.hpp>
Public Types | |
enum class | Mode : bool { SECONDS , MILLISECONDS } |
Public Member Functions | |
AbstractTimer (Mode mode=Mode::MILLISECONDS) | |
virtual void | start (std::uint32_t duration)=0 |
virtual bool | isFinished () const =0 |
virtual void | reset ()=0 |
operator bool () const | |
Mode | getMode () const |
virtual | ~AbstractTimer ()=default |
Public Member Functions inherited from l61::Object | |
virtual | ~Object ()=default |
virtual std::string | toString () const |
Returns a human-readable string representation of the object. | |
virtual std::size_t | hashCode () const |
Returns a hash code for the object. | |
std::string | typeName () const |
Returns the demangled name of the type. | |
const std::type_info & | typeInfo () const |
Returns RTTI type information object. | |
virtual nlohmann::json | toJsonValue () const |
Serializes the object into JSON form. | |
operator std::string () const | |
Explicit conversion operator to std::string. | |
operator nlohmann::json () const | |
Explicit conversion operator to nlohmann::json. |
Private Attributes | |
const Mode | m_mode |
|
strong |
|
explicit |
|
virtualdefault |
AbstractTimer::Mode l61::EventSystem::Timing::AbstractTimer::getMode | ( | ) | const |
|
pure virtual |
Implemented in l61::EventSystem::Timing::AsyncTimer.
l61::EventSystem::Timing::AbstractTimer::operator bool | ( | ) | const |
|
pure virtual |
Implemented in l61::EventSystem::Timing::AsyncTimer.
|
pure virtual |
Implemented in l61::EventSystem::Timing::AsyncTimer.
|
private |