#include <Interval.H>
A class to encapsulate component ranges
Public Member Functions | |
Interval () | |
Interval (int a_firstComp, int a_lastComp) | |
Interval & | operator= (const Interval &p) |
void | define (int a_firstComp, int a_lastComp) |
int | begin () const |
int | end () const |
int | size () const |
bool | contains (int a_val) const |
bool | operator== (const Interval &p) const |
test for equality | |
Private Attributes | |
int | m_begin |
int | m_end |
Interval::Interval | ( | ) | [inline] |
Interval::Interval | ( | int | a_firstComp, | |
int | a_lastComp | |||
) | [inline] |
initialize with first and last component numbers
void Interval::define | ( | int | a_firstComp, | |
int | a_lastComp | |||
) | [inline] |
int Interval::begin | ( | ) | const [inline] |
return first component number
References m_begin.
Referenced by BaseEBCellFAB< T >::assign(), MiniIVFAB< T >::copy(), MiniIFFAB< T >::copy(), IVSFAB< T >::copy(), BaseIVFAB< T >::copy(), BaseIFFAB< T >::copy(), BaseFab< T >::copy(), BaseEBFaceFAB< T >::copy(), BaseEBCellFAB< T >::copy(), LevelData< T >::define(), BoxLayoutData< T >::define(), BaseFab< T >::define(), BaseEBCellFAB< T >::fill(), MiniIVFAB< T >::linearIn(), MiniIFFAB< T >::linearIn(), IVSFAB< T >::linearIn(), LDaddOp< T >::linearIn(), BaseIVFAB< T >::linearIn(), BaseIFFAB< T >::linearIn(), BaseFab< T >::linearIn2(), MiniIVFAB< T >::linearOut(), MiniIFFAB< T >::linearOut(), IVSFAB< T >::linearOut(), BaseIVFAB< T >::linearOut(), BaseIFFAB< T >::linearOut(), BaseFab< T >::linearOut2(), LDaddOp< T >::op(), EBFastFR::reflux(), MiniIFFAB< T >::size(), IVSFAB< T >::size(), BaseIVFAB< T >::size(), BaseIFFAB< T >::size(), IndicesTransformation::transform(), and WriteMultiData< T >::writeData().
int Interval::end | ( | ) | const [inline] |
return last component number
References m_end.
Referenced by blockRead(), MiniIFFAB< T >::copy(), IVSFAB< T >::copy(), BaseIVFAB< T >::copy(), BaseIFFAB< T >::copy(), BaseEBFaceFAB< T >::copy(), BoxLayoutData< T >::define(), MiniIVFAB< T >::linearIn(), MiniIFFAB< T >::linearIn(), IVSFAB< T >::linearIn(), BaseIVFAB< T >::linearIn(), BaseIFFAB< T >::linearIn(), MiniIVFAB< T >::linearOut(), MiniIFFAB< T >::linearOut(), IVSFAB< T >::linearOut(), BaseIVFAB< T >::linearOut(), BaseIFFAB< T >::linearOut(), read(), MiniIFFAB< T >::size(), IVSFAB< T >::size(), BaseIVFAB< T >::size(), BaseIFFAB< T >::size(), IndicesTransformation::transform(), and WriteMultiData< T >::writeData().
int Interval::size | ( | ) | const [inline] |
return last - first + 1
References m_begin, and m_end.
Referenced by aliasLevelData(), BaseEBCellFAB< T >::assign(), blockRead(), blockWrite(), MiniIVFAB< T >::copy(), MiniIFFAB< T >::copy(), IVSFAB< T >::copy(), BaseIVFAB< T >::copy(), BaseIFFAB< T >::copy(), BaseFab< T >::copy(), BaseEBFaceFAB< T >::copy(), BaseEBCellFAB< T >::copy(), AliasDataFactory< T >::create(), dataSize(), LevelData< T >::define(), BoxLayoutData< T >::define(), BaseFab< T >::define(), BaseEBCellFAB< T >::fill(), BoxLayoutData< T >::generalCopyTo(), LDaddOp< T >::linearIn(), BaseFab< T >::linearIn2(), BaseFab< T >::linearOut2(), LDaddOp< T >::op(), read(), EBFastFR::reflux(), MiniIVFAB< T >::size(), IVSFAB< T >::size(), BaseFab< T >::size(), IndicesTransformation::transform(), write(), WriteMultiData< T >::writeData(), and WriteMultiData< T >::WriteMultiData().
bool Interval::operator== | ( | const Interval & | p | ) | const [inline] |
int Interval::m_begin [private] |
Referenced by begin(), contains(), define(), operator=(), operator==(), and size().
int Interval::m_end [private] |
Referenced by contains(), define(), end(), operator=(), operator==(), and size().