Made to Order Software Corporation Logo

LLChatLib: LLChangeChannel Class Reference

LLChangeChannel Class Reference

This class changes the channel of segments in the buffer. More...

#include <llioutil.h>

List of all members.

Public Member Functions

 LLChangeChannel (S32 is, S32 becomes)
 Constructor for iterating over a segment range to change channel.

void operator() (LLSegment &segment)
 Do the work of changing the channel.


Detailed Description

This class changes the channel of segments in the buffer.

See also:
LLBufferArray

This class is useful for iterating over the segments in a buffer array and changing each channel that matches to a different channel. Example: set_in_to_out(LLChannelDescriptors channels, LLBufferArray* buf) { std::for_each( buf->beginSegment(), buf->endSegment(), LLChangeChannel(channels.in(), channels.out())); }


Constructor & Destructor Documentation

LLChangeChannel::LLChangeChannel ( S32  is,
S32  becomes 
)

Constructor for iterating over a segment range to change channel.

Parameters:
is The channel to match when looking at a segment.
becomes The channel to set the segment when a match is found.

LLChangeChannel


The documentation for this class was generated from the following files:
  • /home/doug/src/oss/slitechat/trunk/LLChatLib/llmessage/llioutil.h
  • /home/doug/src/oss/slitechat/trunk/LLChatLib/llmessage/llioutil.cpp
Generated on Thu Sep 23 17:18:39 2010 for LLChatLib by  doxygen 1.6.3