Phosphor
phosphor::TraceBuffer::chunk_iterable Class Reference

#include <trace_buffer.h>

Public Member Functions

 chunk_iterable (const TraceBuffer &buffer_)
 
chunk_iterator begin ()
 
chunk_iterator end ()
 

Detailed Description

Helper class that can be used to create for-range loops over the chunks of the TraceBuffer

for(const auto& chunk : TraceBuffer::chunk_iterable(buffer) {
    // Do something with every chunk
}

Constructor & Destructor Documentation

phosphor::TraceBuffer::chunk_iterable::chunk_iterable ( const TraceBuffer buffer_)
inline
Parameters
buffer_The buffer to iterate over

Member Function Documentation

chunk_iterator phosphor::TraceBuffer::chunk_iterable::begin ( )
inline
Returns
A const iterator to the first chunk of the buffer
chunk_iterator phosphor::TraceBuffer::chunk_iterable::end ( )
inline
Returns
A const iterator to after the last chunk of the buffer

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