Tawara  0.1.0
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
tawara::Segment::BlockIteratorBase< ClusterItrType, BlockItrType > Class Template Reference

#include <tawara/segment.h>

Inheritance diagram for tawara::Segment::BlockIteratorBase< ClusterItrType, BlockItrType >:
Inheritance graph
[legend]
Collaboration diagram for tawara::Segment::BlockIteratorBase< ClusterItrType, BlockItrType >:
Collaboration graph
[legend]

Public Member Functions

 BlockIteratorBase (Segment *segment, ClusterItrType const &cluster)
 Constructor. More...
 
template<typename OtherCIType , typename OtherBIType >
 BlockIteratorBase (BlockIteratorBase< OtherCIType, OtherBIType > const &other)
 Templated base constructor. More...
 
ClusterItrType cluster () const
 Access to the cluster for the current block. More...
 

Protected Member Functions

void increment ()
 Increment the iterator to the next block. More...
 
template<typename OtherCIType , typename OtherBIType >
bool equal (BlockIteratorBase< OtherCIType, OtherBIType > const &other) const
 Test for equality with another Iterator. More...
 
BlockItrType::value_type & dereference () const
 Dereference the iterator to get a pointer to the block. More...
 

Protected Attributes

Segmentsegment_
 
ClusterItrType cluster_
 
BlockItrType block_
 

Friends

class boost::iterator_core_access
 
class Segment
 

Detailed Description

template<typename ClusterItrType, typename BlockItrType>
class tawara::Segment::BlockIteratorBase< ClusterItrType, BlockItrType >

Definition at line 271 of file segment.h.

Constructor & Destructor Documentation

template<typename ClusterItrType, typename BlockItrType>
tawara::Segment::BlockIteratorBase< ClusterItrType, BlockItrType >::BlockIteratorBase ( Segment segment,
ClusterItrType const &  cluster 
)
inline

Constructor.

Parameters
[in]segmentThe segment containing the clusters.
[in]clusterThe cluster to read blocks from.

Definition at line 286 of file segment.h.

template<typename ClusterItrType, typename BlockItrType>
template<typename OtherCIType , typename OtherBIType >
tawara::Segment::BlockIteratorBase< ClusterItrType, BlockItrType >::BlockIteratorBase ( BlockIteratorBase< OtherCIType, OtherBIType > const &  other)
inline

Templated base constructor.

Used to provide interoperability with compatible iterators.

Definition at line 311 of file segment.h.

Member Function Documentation

template<typename ClusterItrType, typename BlockItrType>
ClusterItrType tawara::Segment::BlockIteratorBase< ClusterItrType, BlockItrType >::cluster ( ) const
inline

Access to the cluster for the current block.

Definition at line 318 of file segment.h.

template<typename ClusterItrType, typename BlockItrType>
BlockItrType::value_type& tawara::Segment::BlockIteratorBase< ClusterItrType, BlockItrType >::dereference ( ) const
inlineprotected

Dereference the iterator to get a pointer to the block.

Definition at line 378 of file segment.h.

template<typename ClusterItrType, typename BlockItrType>
template<typename OtherCIType , typename OtherBIType >
bool tawara::Segment::BlockIteratorBase< ClusterItrType, BlockItrType >::equal ( BlockIteratorBase< OtherCIType, OtherBIType > const &  other) const
inlineprotected

Test for equality with another Iterator.

Parameters
[in]otherThe other iterator.

Definition at line 355 of file segment.h.

template<typename ClusterItrType, typename BlockItrType>
void tawara::Segment::BlockIteratorBase< ClusterItrType, BlockItrType >::increment ( )
inlineprotected

Increment the iterator to the next block.

Definition at line 333 of file segment.h.

Friends And Related Function Documentation

template<typename ClusterItrType, typename BlockItrType>
friend class boost::iterator_core_access
friend

Definition at line 323 of file segment.h.

template<typename ClusterItrType, typename BlockItrType>
friend class Segment
friend

Definition at line 326 of file segment.h.

Member Data Documentation

template<typename ClusterItrType, typename BlockItrType>
BlockItrType tawara::Segment::BlockIteratorBase< ClusterItrType, BlockItrType >::block_
protected

Definition at line 330 of file segment.h.

template<typename ClusterItrType, typename BlockItrType>
ClusterItrType tawara::Segment::BlockIteratorBase< ClusterItrType, BlockItrType >::cluster_
protected

Definition at line 329 of file segment.h.

template<typename ClusterItrType, typename BlockItrType>
Segment* tawara::Segment::BlockIteratorBase< ClusterItrType, BlockItrType >::segment_
protected

Definition at line 328 of file segment.h.


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