Classes | Functions

include/deal.II/base/synchronous_iterator.h File Reference

Include dependency graph for synchronous_iterator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SynchronousIterators< Iterators >

Functions

template<typename Iterators >
bool operator< (const SynchronousIterators< Iterators > &a, const SynchronousIterators< Iterators > &b)
template<typename Iterators >
std::size_t operator- (const SynchronousIterators< Iterators > &a, const SynchronousIterators< Iterators > &b)
template<typename I1 , typename I2 >
void advance (std_cxx1x::tuple< I1, I2 > &t, const unsigned int n)
template<typename I1 , typename I2 , typename I3 >
void advance (std_cxx1x::tuple< I1, I2, I3 > &t, const unsigned int n)
template<typename I1 , typename I2 , typename I3 , typename I4 >
void advance (std_cxx1x::tuple< I1, I2, I3, I4 > &t, const unsigned int n)
template<typename I1 , typename I2 >
void advance_by_one (std_cxx1x::tuple< I1, I2 > &t)
template<typename I1 , typename I2 , typename I3 >
void advance_by_one (std_cxx1x::tuple< I1, I2, I3 > &t)
template<typename I1 , typename I2 , typename I3 , typename I4 >
void advance_by_one (std_cxx1x::tuple< I1, I2, I3, I4 > &t)
template<typename Iterators >
SynchronousIterators< Iterators > operator+ (const SynchronousIterators< Iterators > &a, const std::size_t n)
template<typename Iterators >
SynchronousIterators< Iterators > operator++ (SynchronousIterators< Iterators > &a)
template<typename Iterators >
bool operator!= (const SynchronousIterators< Iterators > &a, const SynchronousIterators< Iterators > &b)

Function Documentation

template<typename Iterators >
bool operator< ( const SynchronousIterators< Iterators > &  a,
const SynchronousIterators< Iterators > &  b 
) [inline]

Return whether the first element of the first argument is less than the first element of the second argument. Since the objects compared march forward all elements at the same time, comparing the first element is sufficient.

Definition at line 105 of file synchronous_iterator.h.

template<typename Iterators >
std::size_t operator- ( const SynchronousIterators< Iterators > &  a,
const SynchronousIterators< Iterators > &  b 
) [inline]

Return the distance between the first and the second argument. Since the objects compared march forward all elements at the same time, differencing the first element is sufficient.

Definition at line 124 of file synchronous_iterator.h.

References Assert, StandardExceptions::ExcInternalError(), and SynchronousIterators< Iterators >::iterators.

template<typename I1 , typename I2 >
void advance ( std_cxx1x::tuple< I1, I2 > &  t,
const unsigned int  n 
) [inline]

Advance a tuple of iterators by $n$.

Definition at line 140 of file synchronous_iterator.h.

Referenced by advance(), TrilinosWrappers::BlockVector::BlockVector(), PETScWrappers::BlockVector::BlockVector(), and operator+().

template<typename I1 , typename I2 , typename I3 >
void advance ( std_cxx1x::tuple< I1, I2, I3 > &  t,
const unsigned int  n 
) [inline]

Advance a tuple of iterators by $n$.

Definition at line 152 of file synchronous_iterator.h.

References advance().

template<typename I1 , typename I2 , typename I3 , typename I4 >
void advance ( std_cxx1x::tuple< I1, I2, I3, I4 > &  t,
const unsigned int  n 
) [inline]

Advance a tuple of iterators by $n$.

Definition at line 166 of file synchronous_iterator.h.

References advance().

template<typename I1 , typename I2 >
void advance_by_one ( std_cxx1x::tuple< I1, I2 > &  t ) [inline]

Advance a tuple of iterators by 1.

Definition at line 182 of file synchronous_iterator.h.

Referenced by operator++().

template<typename I1 , typename I2 , typename I3 >
void advance_by_one ( std_cxx1x::tuple< I1, I2, I3 > &  t ) [inline]

Advance a tuple of iterators by 1.

Definition at line 193 of file synchronous_iterator.h.

template<typename I1 , typename I2 , typename I3 , typename I4 >
void advance_by_one ( std_cxx1x::tuple< I1, I2, I3, I4 > &  t ) [inline]

Advance a tuple of iterators by 1.

Definition at line 206 of file synchronous_iterator.h.

template<typename Iterators >
SynchronousIterators<Iterators> operator+ ( const SynchronousIterators< Iterators > &  a,
const std::size_t  n 
) [inline]

Advance the elements of this iterator by $n$.

Definition at line 223 of file synchronous_iterator.h.

References advance(), and SynchronousIterators< Iterators >::iterators.

template<typename Iterators >
SynchronousIterators<Iterators> operator++ ( SynchronousIterators< Iterators > &  a ) [inline]
template<typename Iterators >
bool operator!= ( const SynchronousIterators< Iterators > &  a,
const SynchronousIterators< Iterators > &  b 
) [inline]

Compare synch iterators for inequality. Since they march in synch, comparing only the first element is sufficient.

Definition at line 254 of file synchronous_iterator.h.

References SynchronousIterators< Iterators >::iterators.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:03:01 by doxygen 1.7.2