LLFixedBuffer Class Reference

#include <llfixedbuffer.h>

Inheritance diagram for LLFixedBuffer:

Inheritance graph
[legend]
Collaboration diagram for LLFixedBuffer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLFixedBuffer (const U32 max_lines=20)
virtual ~LLFixedBuffer ()
void clear ()
virtual void addLine (const LLString &utf8line)
virtual void addLine (const LLWString &line)
char * getLines (U32 max_size=0, U32 max_length=0)
void setMaxLines (S32 max_lines)

Public Attributes

LLTimer mTimer
U32 mMaxLines
std::deque< LLWStringmLines
std::deque< F32mAddTimes
std::deque< S32mLineLengths

Protected Member Functions

virtual void removeExtraLines ()

Detailed Description

Definition at line 42 of file llfixedbuffer.h.


Constructor & Destructor Documentation

LLFixedBuffer::LLFixedBuffer ( const U32  max_lines = 20  ) 

Definition at line 34 of file llfixedbuffer.cpp.

References mMaxLines, mTimer, and LLTimer::reset().

LLFixedBuffer::~LLFixedBuffer (  )  [virtual]

Definition at line 41 of file llfixedbuffer.cpp.

References clear().


Member Function Documentation

void LLFixedBuffer::addLine ( const LLWString line  )  [virtual]

Reimplemented in LLConsole.

Definition at line 63 of file llfixedbuffer.cpp.

References LLTimer::getElapsedTimeF32(), mAddTimes, mLineLengths, mLines, mTimer, removeExtraLines(), and S32.

void LLFixedBuffer::addLine ( const LLString utf8line  )  [virtual]

Reimplemented in LLConsole.

Definition at line 57 of file llfixedbuffer.cpp.

References utf8str_to_wstring().

Referenced by LLConsole::addQueuedLines().

void LLFixedBuffer::clear (  ) 

Definition at line 47 of file llfixedbuffer.cpp.

References mAddTimes, mLineLengths, mLines, mTimer, and LLTimer::reset().

Referenced by ~LLFixedBuffer().

char* LLFixedBuffer::getLines ( U32  max_size = 0,
U32  max_length = 0 
)

void LLFixedBuffer::removeExtraLines (  )  [protected, virtual]

Reimplemented in LLConsole.

Definition at line 86 of file llfixedbuffer.cpp.

References llmax(), mAddTimes, mLineLengths, mLines, mMaxLines, and S32.

Referenced by addLine(), LLConsole::removeExtraLines(), and setMaxLines().

void LLFixedBuffer::setMaxLines ( S32  max_lines  ) 

Definition at line 78 of file llfixedbuffer.cpp.

References mMaxLines, and removeExtraLines().

Referenced by LLConsoleMaxLinesListener::handleEvent(), and LLConsole::LLConsole().


Member Data Documentation

std::deque<F32> LLFixedBuffer::mAddTimes

Definition at line 51 of file llfixedbuffer.h.

Referenced by addLine(), LLConsole::addQueuedLines(), clear(), LLConsole::draw(), and removeExtraLines().

std::deque<S32> LLFixedBuffer::mLineLengths

Definition at line 52 of file llfixedbuffer.h.

Referenced by addLine(), clear(), LLConsole::draw(), and removeExtraLines().

std::deque<LLWString> LLFixedBuffer::mLines

Definition at line 50 of file llfixedbuffer.h.

Referenced by addLine(), clear(), LLConsole::draw(), and removeExtraLines().

U32 LLFixedBuffer::mMaxLines

Definition at line 49 of file llfixedbuffer.h.

Referenced by LLConsole::addLine(), LLConsole::draw(), LLFixedBuffer(), removeExtraLines(), LLConsole::removeExtraLines(), and setMaxLines().

LLTimer LLFixedBuffer::mTimer

Definition at line 48 of file llfixedbuffer.h.

Referenced by addLine(), LLConsole::addLine(), clear(), LLConsole::draw(), and LLFixedBuffer().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:16 2010 for Second Life Viewer by  doxygen 1.4.7