Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
rosbag_snapshot::MessageQueue Class Reference

#include <snapshotter.h>

Public Types

typedef std::pair< queue_t::const_iterator, queue_t::const_iterator > range_t
 

Public Member Functions

void clear ()
 
ros::Duration duration () const
 
void fillStatus (rosgraph_msgs::TopicStatistics &status)
 
 MessageQueue (SnapshotterTopicOptions const &options)
 
SnapshotMessage pop ()
 
void push (SnapshotMessage const &msg)
 
range_t rangeFromTimes (ros::Time const &start, ros::Time const &end)
 
void setSubscriber (boost::shared_ptr< ros::Subscriber > sub)
 

Private Types

typedef std::deque< SnapshotMessagequeue_t
 

Private Member Functions

void _clear ()
 
SnapshotMessage _pop ()
 
void _push (SnapshotMessage const &msg)
 
bool preparePush (int32_t size, ros::Time const &time)
 

Private Attributes

boost::mutex lock
 
SnapshotterTopicOptions options_
 
queue_t queue_
 
int64_t size_
 
friend Snapshotter
 
boost::shared_ptr< ros::Subscribersub_
 

Detailed Description

Definition at line 127 of file snapshotter.h.

Member Typedef Documentation

Definition at line 138 of file snapshotter.h.

typedef std::pair<queue_t::const_iterator, queue_t::const_iterator> rosbag_snapshot::MessageQueue::range_t

Definition at line 157 of file snapshotter.h.

Constructor & Destructor Documentation

rosbag_snapshot::MessageQueue::MessageQueue ( SnapshotterTopicOptions const &  options)
explicit

Definition at line 94 of file snapshotter.cpp.

Member Function Documentation

void rosbag_snapshot::MessageQueue::_clear ( )
private

Definition at line 120 of file snapshotter.cpp.

SnapshotMessage rosbag_snapshot::MessageQueue::_pop ( )
private

Definition at line 194 of file snapshotter.cpp.

void rosbag_snapshot::MessageQueue::_push ( SnapshotMessage const &  msg)
private

Definition at line 183 of file snapshotter.cpp.

void rosbag_snapshot::MessageQueue::clear ( )

Definition at line 114 of file snapshotter.cpp.

ros::Duration rosbag_snapshot::MessageQueue::duration ( ) const

Definition at line 126 of file snapshotter.cpp.

void rosbag_snapshot::MessageQueue::fillStatus ( rosgraph_msgs::TopicStatistics &  status)

Definition at line 103 of file snapshotter.cpp.

SnapshotMessage rosbag_snapshot::MessageQueue::pop ( )

Definition at line 178 of file snapshotter.cpp.

bool rosbag_snapshot::MessageQueue::preparePush ( int32_t  size,
ros::Time const &  time 
)
private

Definition at line 134 of file snapshotter.cpp.

void rosbag_snapshot::MessageQueue::push ( SnapshotMessage const &  msg)

Definition at line 167 of file snapshotter.cpp.

MessageQueue::range_t rosbag_snapshot::MessageQueue::rangeFromTimes ( ros::Time const &  start,
ros::Time const &  end 
)

Definition at line 203 of file snapshotter.cpp.

void rosbag_snapshot::MessageQueue::setSubscriber ( boost::shared_ptr< ros::Subscriber sub)

Definition at line 98 of file snapshotter.cpp.

Member Data Documentation

boost::mutex rosbag_snapshot::MessageQueue::lock
private

Definition at line 133 of file snapshotter.h.

SnapshotterTopicOptions rosbag_snapshot::MessageQueue::options_
private

Definition at line 135 of file snapshotter.h.

queue_t rosbag_snapshot::MessageQueue::queue_
private

Definition at line 139 of file snapshotter.h.

int64_t rosbag_snapshot::MessageQueue::size_
private

Definition at line 137 of file snapshotter.h.

friend rosbag_snapshot::MessageQueue::Snapshotter
private

Definition at line 129 of file snapshotter.h.

boost::shared_ptr<ros::Subscriber> rosbag_snapshot::MessageQueue::sub_
private

Definition at line 141 of file snapshotter.h.


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


rosbag_snapshot
Author(s): Kevin Allen
autogenerated on Mon Jan 18 2021 03:45:11