#include <Interval.H>
A class to encapsulate component ranges
Public Member Functions | |
| Interval () | |
| Interval (int a_firstComp, int a_lastComp) | |
| 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
| int Interval::begin | ( | ) | const [inline] |
return first component number
References m_begin.
Referenced by BaseEBCellFAB< T >::assign(), 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(), BaseIVFAB< T >::linearIn(), BaseIFFAB< T >::linearIn(), BaseFab< T >::linearIn(), MiniIVFAB< T >::linearOut(), MiniIFFAB< T >::linearOut(), BaseIVFAB< T >::linearOut(), BaseIFFAB< T >::linearOut(), BaseFab< T >::linearOut(), MiniIFFAB< T >::size(), BaseIVFAB< T >::size(), and BaseIFFAB< T >::size().
| int Interval::end | ( | ) | const [inline] |
return last component number
References m_end.
Referenced by MiniIFFAB< T >::copy(), IVSFAB< T >::copy(), BaseIVFAB< T >::copy(), BaseIFFAB< T >::copy(), BaseEBFaceFAB< T >::copy(), BaseEBCellFAB< T >::copy(), BoxLayoutData< T >::define(), MiniIVFAB< T >::linearIn(), MiniIFFAB< T >::linearIn(), BaseIVFAB< T >::linearIn(), BaseIFFAB< T >::linearIn(), MiniIVFAB< T >::linearOut(), MiniIFFAB< T >::linearOut(), BaseIVFAB< T >::linearOut(), BaseIFFAB< T >::linearOut(), MiniIFFAB< T >::size(), BaseIVFAB< T >::size(), and BaseIFFAB< T >::size().
| int Interval::size | ( | ) | const [inline] |
return last - first + 1
References m_begin, and m_end.
Referenced by aliasLevelData(), BaseEBCellFAB< T >::assign(), MiniIFFAB< T >::copy(), IVSFAB< T >::copy(), BaseIVFAB< T >::copy(), BaseIFFAB< T >::copy(), BaseFab< T >::copy(), BaseEBFaceFAB< T >::copy(), BaseEBCellFAB< T >::copy(), AliasDataFactory< T >::create(), LevelData< T >::define(), BoxLayoutData< T >::define(), BaseFab< T >::define(), BaseEBCellFAB< T >::fill(), BoxLayoutData< T >::generalCopyTo(), BaseFab< T >::linearIn(), BaseFab< T >::linearOut(), MiniIVFAB< T >::size(), and BaseFab< T >::size().
| bool Interval::operator== | ( | const Interval & | p | ) | const [inline] |
int Interval::m_begin [private] |
Referenced by begin(), contains(), define(), operator==(), and size().
int Interval::m_end [private] |
Referenced by contains(), define(), end(), operator==(), and size().
1.5.5