Phosphor
|
#include <trace_buffer.h>
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_iterator & | operator++ () |
bool | operator== (const chunk_iterator &other) const |
bool | operator!= (const chunk_iterator &other) const |
Protected Attributes | |
const TraceBuffer & | buffer |
size_t | index |
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; } }