VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GNet::LineBufferIterator Class Reference

An iterator class for GNet::LineBuffer that extracts complete lines. More...

#include <glinebuffer.h>

Public Member Functions

 LineBufferIterator (LineBuffer &)
 Constructor.
 
 ~LineBufferIterator ()
 Destructor.
 
bool more ()
 Returns true if there is a line() to be had.
 
const std::string & line () const
 Returns the current line. More...
 
std::string::const_iterator begin () const
 Returns a begin iterator for the current line. More...
 
std::string::const_iterator end () const
 Returns an end iterator for the current line. More...
 

Friends

class LineBuffer
 

Detailed Description

An iterator class for GNet::LineBuffer that extracts complete lines.

Iteration and add()ing should not be mixed.

Definition at line 102 of file glinebuffer.h.

Member Function Documentation

std::string::const_iterator GNet::LineBufferIterator::begin ( ) const

Returns a begin iterator for the current line.

Precondition: more()

Definition at line 211 of file glinebuffer.cpp.

std::string::const_iterator GNet::LineBufferIterator::end ( ) const

Returns an end iterator for the current line.

Precondition: more()

Definition at line 216 of file glinebuffer.cpp.

const std::string & GNet::LineBufferIterator::line ( ) const

Returns the current line.

Precondition: more()

Definition at line 201 of file glinebuffer.cpp.


The documentation for this class was generated from the following files: