COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
ListBufferIterator< BufferT > Class Template Reference

#include <ListBufferIterator.hpp>

Inherits iterator_facade< ListBufferIterator< BufferT >, BufferT::value_type, boost::bidirectional_traversal_tag, BufferT::value_type & >.

Public Types

typedef BaseT::difference_type difference_type
 

Public Member Functions

 ListBufferIterator (BufferT &buffer, const Uint startPosition)
 
BufferT::value_type & dereference () const
 
ListBufferIterator< BufferT > & base ()
 Compatibility with boost filtered_iterator interface, so base() can be used transparently on all ranges. More...
 
const ListBufferIterator< BufferT > & base () const
 

Private Types

typedef boost::iterator_facade< ListBufferIterator< BufferT >, BufferT, boost::random_access_traversal_tag, typename BufferT::value_type & > BaseT
 

Private Member Functions

template<typename BufferT2 >
bool equal (ListBufferIterator< BufferT2 > const &other) const
 
void increment ()
 
void decrement ()
 
void advance (const difference_type n)
 
template<typename BufferT2 >
difference_type distance_to (ListBufferIterator< BufferT2 > const &other) const
 

Private Attributes

BufferT & m_buffer
 
Uint m_position
 

Friends

class boost::iterator_core_access
 
template<class >
class ListBufferIterator
 

Detailed Description

template<class BufferT>
class cf3::common::ListBufferIterator< BufferT >

Definition at line 23 of file ListBufferIterator.hpp.

Member Typedef Documentation

typedef boost::iterator_facade<ListBufferIterator<BufferT>, BufferT, boost::random_access_traversal_tag, typename BufferT::value_type&> BaseT
private

Definition at line 30 of file ListBufferIterator.hpp.

typedef BaseT::difference_type difference_type

Definition at line 33 of file ListBufferIterator.hpp.

Constructor & Destructor Documentation

ListBufferIterator ( BufferT &  buffer,
const Uint  startPosition 
)
inlineexplicit

Construct an iterator over the given set of components. If endIterator is true, the iterator is intialized at the end of the range, otherwise at the beginning.

Definition at line 37 of file ListBufferIterator.hpp.

Member Function Documentation

void advance ( const difference_type  n)
inlineprivate

Definition at line 64 of file ListBufferIterator.hpp.

ListBufferIterator<BufferT>& base ( )
inline

Compatibility with boost filtered_iterator interface, so base() can be used transparently on all ranges.

Definition at line 82 of file ListBufferIterator.hpp.

const ListBufferIterator<BufferT>& base ( ) const
inline

Definition at line 87 of file ListBufferIterator.hpp.

void decrement ( )
inlineprivate

Definition at line 58 of file ListBufferIterator.hpp.

BufferT::value_type& dereference ( ) const
inline

Definition at line 76 of file ListBufferIterator.hpp.

difference_type distance_to ( ListBufferIterator< BufferT2 > const &  other) const
inlineprivate

Definition at line 70 of file ListBufferIterator.hpp.

bool equal ( ListBufferIterator< BufferT2 > const &  other) const
inlineprivate

Definition at line 47 of file ListBufferIterator.hpp.

void increment ( )
inlineprivate

Definition at line 52 of file ListBufferIterator.hpp.

Friends And Related Function Documentation

friend class boost::iterator_core_access
friend

Definition at line 43 of file ListBufferIterator.hpp.

friend class ListBufferIterator
friend

Definition at line 44 of file ListBufferIterator.hpp.

Member Data Documentation

BufferT& m_buffer
private

Definition at line 93 of file ListBufferIterator.hpp.

Uint m_position
private

Definition at line 94 of file ListBufferIterator.hpp.


The documentation for this class was generated from the following file:
Send comments to:
COOLFluiD Web Admin