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

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_
uint32_t view_revision_


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

◆ iterator() [1/3]

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

Definition at line 57 of file view.cpp.

◆ iterator() [2/3]

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

Definition at line 44 of file view.cpp.

◆ ~iterator()

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

Definition at line 46 of file view.cpp.

◆ iterator() [3/3]

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

Definition at line 52 of file view.cpp.

Member Function Documentation

◆ dereference()

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

Definition at line 155 of file view.cpp.

◆ equal()

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

Definition at line 101 of file view.cpp.

◆ increment()

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

Definition at line 114 of file view.cpp.

◆ operator=()

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

Definition at line 59 of file view.cpp.

◆ populate()

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

Definition at line 72 of file view.cpp.

◆ populateSeek()

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

Definition at line 84 of file view.cpp.

Friends And Related Function Documentation

◆ boost::iterator_core_access

friend class boost::iterator_core_access

Definition at line 75 of file view.h.

◆ View

friend class View

Definition at line 74 of file view.h.

Member Data Documentation

◆ iters_

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

Definition at line 88 of file view.h.

◆ message_instance_

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

Definition at line 90 of file view.h.

◆ view_

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

Definition at line 87 of file view.h.

◆ view_revision_

uint32_t rosbag::View::iterator::view_revision_

Definition at line 89 of file view.h.

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

Author(s): Dirk Thomas
autogenerated on Mon Feb 28 2022 23:33:55