Classes | |
class | ExcAssignmentOfUnusedObject |
Public Member Functions | |
TriaIterator () | |
TriaIterator (const TriaIterator< Accessor > &) | |
TriaIterator (const TriaRawIterator< Accessor > &) | |
TriaIterator (const Triangulation< Accessor::dimension, Accessor::space_dimension > *parent, const int level, const int index, const typename Accessor::AccessorData *local_data=0) | |
template<typename OtherAccessor > | |
TriaIterator (const TriaIterator< OtherAccessor > &i) | |
template<typename OtherAccessor > | |
TriaIterator (const TriaRawIterator< OtherAccessor > &i) | |
template<typename OtherAccessor > | |
TriaIterator (const TriaActiveIterator< OtherAccessor > &i) | |
TriaIterator< Accessor > & | operator= (const TriaIterator< Accessor > &) |
TriaIterator< Accessor > & | operator= (const TriaRawIterator< Accessor > &) |
Advancement of iterators | |
TriaIterator< Accessor > & | operator++ () |
TriaIterator< Accessor > | operator++ (int) |
TriaIterator< Accessor > & | operator-- () |
TriaIterator< Accessor > | operator-- (int) |
TriaIterator< Accessor >::TriaIterator | ( | ) |
Empty constructor. Such an object is not usable!
TriaIterator< Accessor >::TriaIterator | ( | const TriaIterator< Accessor > & | ) |
Copy constructor.
TriaIterator< Accessor >::TriaIterator | ( | const TriaRawIterator< Accessor > & | ) |
Cross copy constructor from iterators pointing also to non-active objects.
If the object pointed to is not past-the-end and is not used, the debug version raises an error!
TriaIterator< Accessor >::TriaIterator | ( | const Triangulation< Accessor::dimension, Accessor::space_dimension > * | parent, | |
const int | level, | |||
const int | index, | |||
const typename Accessor::AccessorData * | local_data = 0 | |||
) |
Proper constructor, initialized with the triangulation, the level and index of the object pointed to. The last parameter is of a type declared by the accessor class.
If the object pointed to is not past-the-end and is not used, the debug version raises an error!
TriaIterator< Accessor >::TriaIterator | ( | const TriaIterator< OtherAccessor > & | i | ) | [inline] |
This is a conversion operator (constructor) which takes another iterator type and copies the data; this conversion works, if there is a conversion path from the OtherAccessor
class to the Accessor
class of this object. One such path would be derived class to base class, which for example may be used to get a Triangulationcell_iterator
from a DoFHandlercell_iterator
, since the DoFAccessor class is derived from the TriaAccessorBase class.
TriaIterator< Accessor >::TriaIterator | ( | const TriaRawIterator< OtherAccessor > & | i | ) | [inline] |
Similar conversion operator to the above one, but does a check whether the iterator points to a used element, which is necessary for raw iterators.
TriaIterator< Accessor >::TriaIterator | ( | const TriaActiveIterator< OtherAccessor > & | i | ) | [inline] |
Similar conversion operator to the above one, but for conversion from active iterators.
TriaIterator<Accessor>& TriaIterator< Accessor >::operator= | ( | const TriaIterator< Accessor > & | ) |
Assignment operator.
Reimplemented in TriaActiveIterator< Accessor >.
TriaIterator<Accessor>& TriaIterator< Accessor >::operator= | ( | const TriaRawIterator< Accessor > & | ) |
Cross assignment operator. This assignment is only valid if the given iterator points to a used element.
Reimplemented from TriaRawIterator< Accessor >.
Reimplemented in TriaActiveIterator< Accessor >.
TriaIterator<Accessor>& TriaIterator< Accessor >::operator++ | ( | ) |
Prefix ++
operator: ++i
. This operator advances the iterator to the next used element and returns a reference to *this
.
Reimplemented from TriaRawIterator< Accessor >.
Reimplemented in TriaActiveIterator< Accessor >.
TriaIterator<Accessor> TriaIterator< Accessor >::operator++ | ( | int | ) |
Postfix ++
operator: i++
. This operator advances the iterator to the next used element, but returns an iterator to the element previously pointed to. Since this involves a temporary and a copy operation and since an active_iterator
is quite a large object for a pointer, use the prefix operator ++i
whenever possible, especially in the head of for loops (for (; i!=end; ++i)
) since there you normally never need the returned value.
Reimplemented from TriaRawIterator< Accessor >.
Reimplemented in TriaActiveIterator< Accessor >.
TriaIterator<Accessor>& TriaIterator< Accessor >::operator-- | ( | ) |
Prefix --
operator: --i
. This operator advances the iterator to the previous used element and returns a reference to *this
.
Reimplemented from TriaRawIterator< Accessor >.
Reimplemented in TriaActiveIterator< Accessor >.
TriaIterator<Accessor> TriaIterator< Accessor >::operator-- | ( | int | ) |
Postfix --
operator: i--
.
Reimplemented from TriaRawIterator< Accessor >.
Reimplemented in TriaActiveIterator< Accessor >.