18#ifndef _LOG4CXX_HELPERS_CYCLICBUFFER_H
19#define _LOG4CXX_HELPERS_CYCLICBUFFER_H
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.
#define LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(T, V)
Definition: log4cxx.h:85
#define LOG4CXX_EXPORT
Definition: log4cxx.h:101
#define LOG4CXX_NS
Definition: log4cxx.h:104
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:32