Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
mcap::internal::ReadJobQueue Struct Reference

A priority queue of jobs for an indexed MCAP reader to execute. More...

#include <read_job_queue.hpp>

Public Member Functions

size_t len () const
 
ReadJob pop ()
 
void push (DecompressChunkJob &&decompressChunkJob)
 
void push (ReadMessageJob &&readMessageJob)
 
 ReadJobQueue (bool reverse)
 

Static Private Member Functions

static bool CompareForward (const ReadJob &a, const ReadJob &b)
 
static bool CompareReverse (const ReadJob &a, const ReadJob &b)
 
static RecordOffset PositionComparisonKey (const ReadJob &job, bool reverse)
 
static Timestamp TimeComparisonKey (const ReadJob &job, bool reverse)
 return the timestamp key that should be used to compare jobs. More...
 

Private Attributes

std::vector< ReadJobheap_
 
bool reverse_ = false
 

Detailed Description

A priority queue of jobs for an indexed MCAP reader to execute.

Definition at line 43 of file read_job_queue.hpp.

Constructor & Destructor Documentation

◆ ReadJobQueue()

mcap::internal::ReadJobQueue::ReadJobQueue ( bool  reverse)
inlineexplicit

Definition at line 111 of file read_job_queue.hpp.

Member Function Documentation

◆ CompareForward()

static bool mcap::internal::ReadJobQueue::CompareForward ( const ReadJob a,
const ReadJob b 
)
inlinestaticprivate

Definition at line 92 of file read_job_queue.hpp.

◆ CompareReverse()

static bool mcap::internal::ReadJobQueue::CompareReverse ( const ReadJob a,
const ReadJob b 
)
inlinestaticprivate

Definition at line 101 of file read_job_queue.hpp.

◆ len()

size_t mcap::internal::ReadJobQueue::len ( ) const
inline

Definition at line 142 of file read_job_queue.hpp.

◆ pop()

ReadJob mcap::internal::ReadJobQueue::pop ( )
inline

Definition at line 131 of file read_job_queue.hpp.

◆ PositionComparisonKey()

static RecordOffset mcap::internal::ReadJobQueue::PositionComparisonKey ( const ReadJob job,
bool  reverse 
)
inlinestaticprivate

Definition at line 71 of file read_job_queue.hpp.

◆ push() [1/2]

void mcap::internal::ReadJobQueue::push ( DecompressChunkJob &&  decompressChunkJob)
inline

Definition at line 113 of file read_job_queue.hpp.

◆ push() [2/2]

void mcap::internal::ReadJobQueue::push ( ReadMessageJob &&  readMessageJob)
inline

Definition at line 122 of file read_job_queue.hpp.

◆ TimeComparisonKey()

static Timestamp mcap::internal::ReadJobQueue::TimeComparisonKey ( const ReadJob job,
bool  reverse 
)
inlinestaticprivate

return the timestamp key that should be used to compare jobs.

Definition at line 51 of file read_job_queue.hpp.

Member Data Documentation

◆ heap_

std::vector<ReadJob> mcap::internal::ReadJobQueue::heap_
private

Definition at line 46 of file read_job_queue.hpp.

◆ reverse_

bool mcap::internal::ReadJobQueue::reverse_ = false
private

Definition at line 45 of file read_job_queue.hpp.


The documentation for this struct was generated from the following file:


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:52