18#ifndef _LOG4CXX_HELPERS_CYCLICBUFFER_H
19#define _LOG4CXX_HELPERS_CYCLICBUFFER_H
38 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(CyclicBufferPriv, m_priv)
CyclicBuffer is used by other appenders to hold instances of LoggingEvent for immediate or deferred d...
Definition: cyclicbuffer.h:36
spi::LoggingEventPtr get()
Get the oldest (first) element in the buffer.
int length() const
Get the number of elements in the buffer.
void resize(int newSize)
Resize the cyclic buffer to newSize.
void add(const spi::LoggingEventPtr &event)
Add an event as the last event in the buffer.
CyclicBuffer(int maxSize)
Instantiate a new CyclicBuffer of at most maxSize events.
spi::LoggingEventPtr get(int i)
Get the ith oldest event currently in the buffer.
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:32