Phosphor
phosphor::TraceBuffer::chunk_iterator Class Reference

#include <trace_buffer.h>

Inheritance diagram for phosphor::TraceBuffer::chunk_iterator:

Public Member Functions

 chunk_iterator (const TraceBuffer &buffer_)
 
 chunk_iterator (const TraceBuffer &buffer_, size_t index_)
 
const_reference operator* () const
 
const_pointer operator-> () const
 
chunk_iteratoroperator++ ()
 
bool operator== (const chunk_iterator &other) const
 
bool operator!= (const chunk_iterator &other) const
 

Protected Attributes

const TraceBufferbuffer
 
size_t index
 

Detailed Description

Const bi-directional iterator over the TraceChunks in a TraceBuffer

Usage:

chunk_iterator it = buffer.chunk_start(); std::cout << *(it->start()) << std::endl;

for(const auto& chunk : buffer.chunks()) { for(const auto& event : chunk) { std::cout << event << std::endl; } }


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