18 #ifndef _LOG4CXX_HELPERS_CYCLICBUFFER_H
19 #define _LOG4CXX_HELPERS_CYCLICBUFFER_H
36 log4cxx::spi::LoggingEventList ea;
CyclicBuffer is used by other appenders to hold instances of LoggingEvent for immediate or deferred d...
Definition: cyclicbuffer.h:35
spi::LoggingEventPtr get()
Get the oldest (first) element in the buffer.
int getMaxSize() const
Definition: cyclicbuffer.h:66
int length() const
Get the number of elements in the buffer.
Definition: cyclicbuffer.h:82
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:37
Definition: appender.h:33