avro::detail::InputIteratorHelper Struct Reference

Implements conversion from a chunk to asio::const_buffer. More...

#include <BufferDetailIterator.hh>

List of all members.

Public Member Functions

 InputIteratorHelper ()
 Construct a helper with an unnassigned iterator.
 InputIteratorHelper (const BufferImpl::ChunkList::const_iterator &iter)
 Construct a helper with an iterator.
const data_type * data () const
 The location of valid data in this chunk.
size_type size () const
 The size of valid data in this chunk.

Public Attributes

BufferImpl::ChunkList::const_iterator iter_
 Conversion operator.

Detailed Description

Implements conversion from a chunk to asio::const_buffer.

Iterators for an InputBuffer will iterate over the avro of chunks, so internally they contain an iterator. But the iterator needs to be convertable to an asio buffer for use in boost::asio functions. This class wraps the iterator with a cast operator to do this conversion.

Member Data Documentation

BufferImpl::ChunkList::const_iterator avro::detail::InputIteratorHelper::iter_

Conversion operator.

It doesn't check for null, because the only the only time the chunk should be null is when it's the iterator end(), which should never be dereferenced anyway. the current iterator

Referenced by data(), and size().

The documentation for this struct was generated from the following file:
Generated on Thu Sep 2 18:40:54 2010 for Avro C++ by  doxygen 1.6.3