Reference documentation for deal.II version Git 7f58f27 2017-09-20 15:35:49 -0600
Public Member Functions | Private Attributes | List of all members
IndexSet::IntervalIterator Class Reference

#include <deal.II/base/index_set.h>

Inherits iterator< std::forward_iterator_tag, IntervalAccessor >.

Public Member Functions

 IntervalIterator (const IndexSet *idxset, const size_type range_idx)
 
 IntervalIterator (const IndexSet *idxset)
 
 IntervalIterator ()
 
 IntervalIterator (const IntervalIterator &other)
 
IntervalIteratoroperator= (const IntervalIterator &other)
 
IntervalIteratoroperator++ ()
 
IntervalIterator operator++ (int)
 
const IntervalAccessoroperator* () const
 
const IntervalAccessoroperator-> () const
 
bool operator== (const IntervalIterator &) const
 
bool operator!= (const IntervalIterator &) const
 
bool operator< (const IntervalIterator &) const
 
int operator- (const IntervalIterator &p) const
 

Private Attributes

IntervalAccessor accessor
 

Detailed Description

Class that represents an iterator pointing to a contiguous interval \([a,b[\) as returned by IndexSet::begin_interval().

Definition at line 529 of file index_set.h.

Constructor & Destructor Documentation

IndexSet::IntervalIterator::IntervalIterator ( const IndexSet idxset,
const size_type  range_idx 
)
inline

Construct a valid iterator pointing to the interval with index range_idx.

Definition at line 1042 of file index_set.h.

IndexSet::IntervalIterator::IntervalIterator ( const IndexSet idxset)
inlineexplicit

Construct an invalid iterator (used as end()).

Definition at line 1059 of file index_set.h.

IndexSet::IntervalIterator::IntervalIterator ( )
inline

Construct an empty iterator.

Definition at line 1051 of file index_set.h.

IndexSet::IntervalIterator::IntervalIterator ( const IntervalIterator other)
inline

Copy constructor from other iterator.

Definition at line 1067 of file index_set.h.

Member Function Documentation

IndexSet::IntervalIterator & IndexSet::IntervalIterator::operator= ( const IntervalIterator other)
inline

Assignment of another iterator.

Definition at line 1076 of file index_set.h.

IndexSet::IntervalIterator & IndexSet::IntervalIterator::operator++ ( )
inline

Prefix increment.

Definition at line 1086 of file index_set.h.

IndexSet::IntervalIterator IndexSet::IntervalIterator::operator++ ( int  )
inline

Postfix increment.

Definition at line 1096 of file index_set.h.

const IndexSet::IntervalAccessor & IndexSet::IntervalIterator::operator* ( ) const
inline

Dereferencing operator, returns an IntervalAccessor.

Definition at line 1107 of file index_set.h.

const IndexSet::IntervalAccessor * IndexSet::IntervalIterator::operator-> ( ) const
inline

Dereferencing operator, returns a pointer to an IntervalAccessor.

Definition at line 1116 of file index_set.h.

bool IndexSet::IntervalIterator::operator== ( const IntervalIterator other) const
inline

Comparison.

Definition at line 1125 of file index_set.h.

bool IndexSet::IntervalIterator::operator!= ( const IntervalIterator other) const
inline

Inverse of ==.

Definition at line 1134 of file index_set.h.

bool IndexSet::IntervalIterator::operator< ( const IntervalIterator other) const
inline

Comparison operator.

Definition at line 1143 of file index_set.h.

int IndexSet::IntervalIterator::operator- ( const IntervalIterator p) const
inline

Return the distance between the current iterator and the argument. The distance is given by how many times one has to apply operator++ to the current iterator to get the argument (for a positive return value), or operator-- (for a negative return value).

Definition at line 1152 of file index_set.h.

Member Data Documentation

IntervalAccessor IndexSet::IntervalIterator::accessor
private

Accessor that contains what IndexSet and interval we are pointing at.

Definition at line 605 of file index_set.h.


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