#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 |
Public Member Functions inherited from RTT::internal::DataSource< os::TimeService::Seconds > | |
BOOST_STATIC_ASSERT (!details::HasConst< os::TimeService::Seconds >::value) | |
virtual bool | evaluate () const |
void const * | getRawConstPointer () |
virtual std::string | getType () const |
virtual const types::TypeInfo * | getTypeInfo () const |
virtual std::string | getTypeName () const |
Public Member Functions inherited from RTT::base::DataSourceBase | |
virtual DataSourceBase * | copy (std::map< const DataSourceBase *, DataSourceBase * > &alreadyCloned) const =0 |
DataSourceBase () | |
void | deref () const |
virtual shared_ptr | getMember (const std::string &member_name) |
virtual shared_ptr | getMember (DataSourceBase::shared_ptr member_id, DataSourceBase::shared_ptr offset) |
virtual std::vector< std::string > | getMemberNames () const |
virtual shared_ptr | getParent () |
virtual void * | getRawPointer () |
virtual bool | isAssignable () const |
void | ref () const |
std::string | toString () |
virtual bool | update (DataSourceBase *other) |
virtual ActionInterface * | updateAction (DataSourceBase *other) |
virtual void | updated () |
std::ostream & | write (std::ostream &os) |
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.
|
inline |
Definition at line 57 of file DataSourceTime.hpp.
|
inlinevirtual |
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.
|
inlinevirtual |
Implements RTT::internal::DataSource< os::TimeService::Seconds >.
Definition at line 82 of file DataSourceTime.hpp.
|
inlinevirtual |
Return the data as type T.
Implements RTT::internal::DataSource< os::TimeService::Seconds >.
Definition at line 61 of file DataSourceTime.hpp.
|
inlinevirtual |
Reset the data to initial values.
Reimplemented from RTT::base::DataSourceBase.
Definition at line 73 of file DataSourceTime.hpp.
|
inlinevirtual |
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.
|
inlinevirtual |
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.
|
mutableprivate |
Definition at line 54 of file DataSourceTime.hpp.
|
private |
Definition at line 53 of file DataSourceTime.hpp.
|
private |
Definition at line 55 of file DataSourceTime.hpp.