Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
rosbag::View::iterator Class Reference

An iterator that points to a MessageInstance from a bag. More...

#include <view.h>

Inheritance diagram for rosbag::View::iterator:
Inheritance graph
[legend]

Public Member Functions

 iterator (iterator const &i)
 
 iterator ()
 
iteratoroperator= (iterator const &i)
 
 ~iterator ()
 

Protected Member Functions

 iterator (View *view, bool end=false)
 

Private Member Functions

MessageInstancedereference () const
 
bool equal (iterator const &other) const
 
void increment ()
 
void populate ()
 
void populateSeek (std::multiset< IndexEntry >::const_iterator iter)
 

Private Attributes

std::vector< ViewIterHelperiters_
 
MessageInstancemessage_instance_
 
Viewview_
 
uint32_t view_revision_
 

Friends

class boost::iterator_core_access
 
class View
 

Detailed Description

An iterator that points to a MessageInstance from a bag.

This iterator stores the MessageInstance that it is returning a reference to. If you increment the iterator that MessageInstance is destroyed. You should never store the pointer to this reference.

Definition at line 60 of file view.h.

Constructor & Destructor Documentation

rosbag::View::iterator::iterator ( iterator const &  i)

Definition at line 60 of file view.cpp.

rosbag::View::iterator::iterator ( )

Definition at line 47 of file view.cpp.

rosbag::View::iterator::~iterator ( )

Definition at line 49 of file view.cpp.

rosbag::View::iterator::iterator ( View view,
bool  end = false 
)
protected

Definition at line 55 of file view.cpp.

Member Function Documentation

MessageInstance & rosbag::View::iterator::dereference ( ) const
private

Definition at line 158 of file view.cpp.

bool rosbag::View::iterator::equal ( View::iterator const &  other) const
private

Definition at line 104 of file view.cpp.

void rosbag::View::iterator::increment ( void  )
private

Definition at line 117 of file view.cpp.

View::iterator & rosbag::View::iterator::operator= ( iterator const &  i)

Definition at line 62 of file view.cpp.

void rosbag::View::iterator::populate ( )
private

Definition at line 75 of file view.cpp.

void rosbag::View::iterator::populateSeek ( std::multiset< IndexEntry >::const_iterator  iter)
private

Definition at line 87 of file view.cpp.

Friends And Related Function Documentation

friend class boost::iterator_core_access
friend

Definition at line 75 of file view.h.

friend class View
friend

Definition at line 74 of file view.h.

Member Data Documentation

std::vector<ViewIterHelper> rosbag::View::iterator::iters_
private

Definition at line 88 of file view.h.

MessageInstance* rosbag::View::iterator::message_instance_
mutableprivate

Definition at line 90 of file view.h.

View* rosbag::View::iterator::view_
private

Definition at line 87 of file view.h.

uint32_t rosbag::View::iterator::view_revision_
private

Definition at line 89 of file view.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:40