IO::Basic_Buffer< Ch > Class Template Reference

A wrapper around an Abstract_Buffer. More...

#include <Buffer.hpp>

List of all members.

Public Types

typedef Abstract_Buffer< Ch >
::character_iterator 
character_iterator
 character iteration begin
typedef Basic_Segment_Iterator
< Ch > 
segment_iterator
 Segment iterator type.
typedef
Basic_Const_Segment_Iterator
< Ch > 
const_segment_iterator
 Constant segment iterator type.

Public Member Functions

 Basic_Buffer (Abstract_Buffer< Ch > &x)
 Constructor converts a particular storage strategy.
 Basic_Buffer ()
 Constructor converts a particular storage strategy.
Basic_Bufferoperator= (const Basic_Buffer &x)
 assignment
void append (Ch *x, size_t n)
 append a segment to the current buffer
size_t size () const
 total size of the buffer (the sum of the lengths of all segments)
character_iterator begin ()
const_segment_iterator segment_begin () const
 Constant iterator to first segment.
const_segment_iterator segment_end () const
 Constant iterator to last-plus-one segment.
int compare (const Abstract_Buffer< Ch > &x) const
 Compare two buffers as character sequences.
bool operator< (const Abstract_Buffer< Ch > &x) const
 Less-than operator on character sequences.
bool operator== (const Abstract_Buffer< Ch > &x) const
 Equality operator on character sequences.


Detailed Description

template<class Ch>
class IO::Basic_Buffer< Ch >

A wrapper around an Abstract_Buffer.

Member Typedef Documentation

template<class Ch>
typedef Abstract_Buffer< Ch >::character_iterator IO::Basic_Buffer< Ch >::character_iterator

character iteration begin

template<class Ch>
typedef Basic_Segment_Iterator< Ch > IO::Basic_Buffer< Ch >::segment_iterator

Segment iterator type.

template<class Ch>
typedef Basic_Const_Segment_Iterator< Ch > IO::Basic_Buffer< Ch >::const_segment_iterator

Constant segment iterator type.


Constructor & Destructor Documentation

template<class Ch>
IO::Basic_Buffer< Ch >::Basic_Buffer ( Abstract_Buffer< Ch > &  x  )  [inline]

Constructor converts a particular storage strategy.

template<class Ch>
IO::Basic_Buffer< Ch >::Basic_Buffer (  )  [inline]

Constructor converts a particular storage strategy.


Member Function Documentation

template<class Ch>
Basic_Buffer& IO::Basic_Buffer< Ch >::operator= ( const Basic_Buffer< Ch > &  x  )  [inline]

assignment

template<class Ch>
void IO::Basic_Buffer< Ch >::append ( Ch *  x,
size_t  n 
) [inline]

append a segment to the current buffer

template<class Ch>
size_t IO::Basic_Buffer< Ch >::size (  )  const [inline]

total size of the buffer (the sum of the lengths of all segments)

template<class Ch>
character_iterator IO::Basic_Buffer< Ch >::begin (  )  [inline]

template<class Ch>
const_segment_iterator IO::Basic_Buffer< Ch >::segment_begin (  )  const [inline]

Constant iterator to first segment.

template<class Ch>
const_segment_iterator IO::Basic_Buffer< Ch >::segment_end (  )  const [inline]

Constant iterator to last-plus-one segment.

template<class Ch>
int IO::Basic_Buffer< Ch >::compare ( const Abstract_Buffer< Ch > &  x  )  const [inline]

Compare two buffers as character sequences.

template<class Ch>
bool IO::Basic_Buffer< Ch >::operator< ( const Abstract_Buffer< Ch > &  x  )  const [inline]

Less-than operator on character sequences.

template<class Ch>
bool IO::Basic_Buffer< Ch >::operator== ( const Abstract_Buffer< Ch > &  x  )  const [inline]

Equality operator on character sequences.


The documentation for this class was generated from the following file:
Generated on Thu Mar 6 18:25:12 2008 for Gnash by  doxygen 1.5.4