Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
ros::WallTimer Class Reference

Manages a wall-clock timer callback. More...

#include <wall_timer.h>

List of all members.

Classes

class  Impl

Public Member Functions

bool hasPending ()
 Returns whether or not the timer has any pending events to call.
bool isValid ()
 operator void * ()
bool operator!= (const WallTimer &rhs)
bool operator< (const WallTimer &rhs)
bool operator== (const WallTimer &rhs)
void setPeriod (const WallDuration &period, bool reset=true)
 Set the period of this timer.
void start ()
 Start the timer. Does nothing if the timer is already started.
void stop ()
 Stop the timer. Once this call returns, no more callbacks will be called. Does nothing if the timer is already stopped.
 WallTimer ()
 WallTimer (const WallTimer &rhs)
 ~WallTimer ()

Private Types

typedef boost::shared_ptr< ImplImplPtr
typedef boost::weak_ptr< ImplImplWPtr

Private Member Functions

 WallTimer (const WallTimerOptions &ops)

Private Attributes

ImplPtr impl_

Friends

class NodeHandle

Detailed Description

Manages a wall-clock timer callback.

A WallTimer should always be created through a call to NodeHandle::createWallTimer(), or copied from one that was. Once all copies of a specific WallTimer go out of scope, the callback associated with that handle will stop being called.

Definition at line 46 of file wall_timer.h.


Member Typedef Documentation

typedef boost::shared_ptr<Impl> ros::WallTimer::ImplPtr [private]

Definition at line 118 of file wall_timer.h.

typedef boost::weak_ptr<Impl> ros::WallTimer::ImplWPtr [private]

Definition at line 119 of file wall_timer.h.


Constructor & Destructor Documentation

Definition at line 49 of file wall_timer.h.

Definition at line 102 of file wall_timer.cpp.

Definition at line 107 of file wall_timer.cpp.

ros::WallTimer::WallTimer ( const WallTimerOptions ops) [private]

Definition at line 91 of file wall_timer.cpp.


Member Function Documentation

Returns whether or not the timer has any pending events to call.

Definition at line 127 of file wall_timer.cpp.

bool ros::WallTimer::isValid ( ) [inline]

Definition at line 74 of file wall_timer.h.

ros::WallTimer::operator void * ( ) [inline]

Definition at line 75 of file wall_timer.h.

bool ros::WallTimer::operator!= ( const WallTimer rhs) [inline]

Definition at line 87 of file wall_timer.h.

bool ros::WallTimer::operator< ( const WallTimer rhs) [inline]

Definition at line 77 of file wall_timer.h.

bool ros::WallTimer::operator== ( const WallTimer rhs) [inline]

Definition at line 82 of file wall_timer.h.

void ros::WallTimer::setPeriod ( const WallDuration period,
bool  reset = true 
)

Set the period of this timer.

Parameters:
resetWhether to reset the timer. If true, timer ignores elapsed time and next cb occurs at now()+period

Definition at line 137 of file wall_timer.cpp.

Start the timer. Does nothing if the timer is already started.

Definition at line 111 of file wall_timer.cpp.

Stop the timer. Once this call returns, no more callbacks will be called. Does nothing if the timer is already stopped.

Definition at line 119 of file wall_timer.cpp.


Friends And Related Function Documentation

friend class NodeHandle [friend]

Definition at line 123 of file wall_timer.h.


Member Data Documentation

Definition at line 121 of file wall_timer.h.


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


roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim
autogenerated on Tue Mar 7 2017 03:44:47