#include <DataSourceTime.hpp>
Public Member Functions | |
DataSourceTime * | clone () const |
DataSourceTime * | copy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const |
DataSourceTime () | |
os::TimeService::Seconds | get () const |
void | reset () |
os::TimeService::Seconds const & | rvalue () const |
os::TimeService::Seconds | value () const |
Private Attributes | |
os::TimeService::Seconds | last |
os::TimeService::ticks | stamp |
os::TimeService * | ts |
A internal::DataSource which returns the time elapsed since the last reset in Seconds.
Definition at line 50 of file DataSourceTime.hpp.
RTT::scripting::DataSourceTime::DataSourceTime | ( | ) | [inline] |
Definition at line 57 of file DataSourceTime.hpp.
DataSourceTime* RTT::scripting::DataSourceTime::clone | ( | ) | const [inline, virtual] |
Return a shallow clone of this DataSource. This method returns a duplicate of this instance which re-uses the DataSources this internal::DataSource holds reference to. The clone() function is thus a non-deep copy.
Implements RTT::internal::DataSource< os::TimeService::Seconds >.
Definition at line 78 of file DataSourceTime.hpp.
DataSourceTime* RTT::scripting::DataSourceTime::copy | ( | std::map< const base::DataSourceBase *, base::DataSourceBase * > & | alreadyCloned | ) | const [inline, virtual] |
Implements RTT::internal::DataSource< os::TimeService::Seconds >.
Definition at line 82 of file DataSourceTime.hpp.
os::TimeService::Seconds RTT::scripting::DataSourceTime::get | ( | ) | const [inline, virtual] |
Return the data as type T.
Implements RTT::internal::DataSource< os::TimeService::Seconds >.
Definition at line 61 of file DataSourceTime.hpp.
void RTT::scripting::DataSourceTime::reset | ( | ) | [inline, virtual] |
Reset the data to initial values.
Reimplemented from RTT::base::DataSourceBase.
Definition at line 73 of file DataSourceTime.hpp.
os::TimeService::Seconds const& RTT::scripting::DataSourceTime::rvalue | ( | ) | const [inline, virtual] |
Get a const reference to the value of this DataSource. You must call evaluate() prior to calling this function in order to get the most recent value of this attribute.
Implements RTT::internal::DataSource< os::TimeService::Seconds >.
Definition at line 69 of file DataSourceTime.hpp.
os::TimeService::Seconds RTT::scripting::DataSourceTime::value | ( | ) | const [inline, virtual] |
Return the result of the last evaluate() function. You must call evaluate() prior to calling this function in order to get the most recent value of this attribute.
Implements RTT::internal::DataSource< os::TimeService::Seconds >.
Definition at line 65 of file DataSourceTime.hpp.
os::TimeService::Seconds RTT::scripting::DataSourceTime::last [mutable, private] |
Definition at line 54 of file DataSourceTime.hpp.
Definition at line 53 of file DataSourceTime.hpp.
Definition at line 55 of file DataSourceTime.hpp.