DOpE
Public Member Functions
DOpE::TimeIterator Class Reference

#include <timeiterator.h>

Public Member Functions

 TimeIterator ()
 
 TimeIterator (const active_cell_it &element, int present_index)
 
 TimeIterator (const TimeIterator &it)
 
IteratorState::IteratorStates GetState () const
 
int GetIndex () const
 
TimeIteratoroperator= (const TimeIterator &element)
 
void Initialize (const active_cell_it &element, int present_index)
 
bool operator== (const TimeIterator &element)
 
bool operator!= (const TimeIterator &element)
 
double get_center () const
 
double get_left () const
 
double get_right () const
 
double get_k () const
 
const active_cell_itgetelement_ () const
 
void get_time_dof_indices (std::vector< unsigned int > &local_dof_indices) const
 
TimeIteratoroperator++ ()
 
TimeIterator operator++ (int)
 
TimeIteratoroperator-- ()
 
TimeIterator operator-- (int)
 

Detailed Description

An iterator for the timedofhandler that allows us to work with the 1d triangulation of the interval in the same way that we would do if we just had numbers for the endpoints of the intervals.

Constructor & Destructor Documentation

DOpE::TimeIterator::TimeIterator ( )
inline

The object constructed by this is not usable!

DOpE::TimeIterator::TimeIterator ( const active_cell_it element,
int  present_index 
)
inline

Self explanatory.

DOpE::TimeIterator::TimeIterator ( const TimeIterator it)
inline

Copy constructor

Member Function Documentation

double DOpE::TimeIterator::get_center ( ) const
inline

Returns the center of the actual element.

double DOpE::TimeIterator::get_k ( ) const
inline

Returns the length of the actual element.

double DOpE::TimeIterator::get_left ( ) const
inline

Returns the location of the left hand side of the actual element.

double DOpE::TimeIterator::get_right ( ) const
inline

Returns the location of the right hand side of the actual element.

void DOpE::TimeIterator::get_time_dof_indices ( std::vector< unsigned int > &  local_dof_indices) const
inline
const active_cell_it& DOpE::TimeIterator::getelement_ ( ) const
inline
int DOpE::TimeIterator::GetIndex ( ) const
inline

Returns present_index_, which is the number of the interval we are currently pointing to, starting at 0 (negative values correspond to different states the iterator is currently in.)

IteratorState::IteratorStates DOpE::TimeIterator::GetState ( ) const
inline

This translates the actual value of present_index_ into an state.

void DOpE::TimeIterator::Initialize ( const active_cell_it element,
int  present_index 
)
inline
bool DOpE::TimeIterator::operator!= ( const TimeIterator element)
inline
TimeIterator& DOpE::TimeIterator::operator++ ( )
inline

Prefix++ operator

TimeIterator DOpE::TimeIterator::operator++ ( int  )
inline

Postfix ++ operator

TimeIterator& DOpE::TimeIterator::operator-- ( )
inline

Prefix – operator

TimeIterator DOpE::TimeIterator::operator-- ( int  )
inline

Postfix – operator

TimeIterator& DOpE::TimeIterator::operator= ( const TimeIterator element)
inline
bool DOpE::TimeIterator::operator== ( const TimeIterator element)
inline

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