#include <TimedDataIterator.H>
Public Member Functions | |
virtual | ~TimedDataIterator () |
virtual bool | ok () const |
return true if this iterator is still in its Layout | |
virtual void | operator++ () |
move the iterator to the next Box in the layout | |
void | clearTime () |
sets m_time values to zero | |
Vector< unsigned long long > & | getTime () |
gets current time data | |
Vector< Box > | getBoxes () |
const Vector< unsigned long long > & | getTime () const |
gets current time data in microseconds | |
void | enableTime () |
enables timing. does not set to zero. use clear time for that | |
void | disableTime () |
turns off timing | |
void | mergeTime () |
After you are finished timing your local elements, call mergeTimes to fill-in off-processor times. | |
Private Member Functions | |
void | defineTime () |
TimedDataIterator () | |
TimedDataIterator (const BoxLayout &boxlayout, const int *layoutID) | |
Private Attributes | |
Vector< unsigned long long > | m_time |
bool | m_timeEnabled |
bool | m_timeDefined |
unsigned long long | m_startTime |
int | m_ibox |
Friends | |
class | BoxLayout |
class | DisjointBoxLayout |
virtual TimedDataIterator::~TimedDataIterator | ( | ) | [inline, virtual] |
TimedDataIterator::TimedDataIterator | ( | ) | [private] |
TimedDataIterator::TimedDataIterator | ( | const BoxLayout & | boxlayout, | |
const int * | layoutID | |||
) | [private] |
virtual bool TimedDataIterator::ok | ( | ) | const [virtual] |
virtual void TimedDataIterator::operator++ | ( | ) | [virtual] |
void TimedDataIterator::clearTime | ( | ) |
sets m_time values to zero
Vector<unsigned long long>& TimedDataIterator::getTime | ( | ) | [inline] |
References BoxLayout::boxArray(), and LayoutIterator::m_layout.
const Vector<unsigned long long>& TimedDataIterator::getTime | ( | ) | const [inline] |
void TimedDataIterator::enableTime | ( | ) | [inline] |
enables timing. does not set to zero. use clear time for that
References defineTime(), and m_timeEnabled.
void TimedDataIterator::disableTime | ( | ) | [inline] |
void TimedDataIterator::mergeTime | ( | ) |
After you are finished timing your local elements, call mergeTimes to fill-in off-processor times.
void TimedDataIterator::defineTime | ( | ) | [private] |
Referenced by enableTime().
friend class BoxLayout [friend] |
Reimplemented from DataIterator.
friend class DisjointBoxLayout [friend] |
Reimplemented from DataIterator.
Vector<unsigned long long> TimedDataIterator::m_time [private] |
Referenced by getTime().
bool TimedDataIterator::m_timeEnabled [private] |
Referenced by disableTime(), and enableTime().
bool TimedDataIterator::m_timeDefined [private] |
unsigned long long TimedDataIterator::m_startTime [private] |
int TimedDataIterator::m_ibox [private] |