Interval Struct Reference

#include <Interval.H>

List of all members.

Detailed Description

Structure for passing component ranges in code.

A class to encapsulate component ranges

Public Member Functions

 Interval ()
 Interval (int a_firstComp, int a_lastComp)
Intervaloperator= (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

Constructor & Destructor Documentation

Interval::Interval (  )  [inline]

Interval::Interval ( int  a_firstComp,
int  a_lastComp 
) [inline]

initialize with first and last component numbers

Member Function Documentation

Interval& Interval::operator= ( const Interval p  )  [inline]

Copy from another Interval

References m_begin, and m_end.

void Interval::define ( int  a_firstComp,
int  a_lastComp 
) [inline]

References m_begin, and m_end.

Referenced by WriteMultiData< T >::WriteMultiData().

int Interval::begin (  )  const [inline]

int Interval::end (  )  const [inline]

int Interval::size (  )  const [inline]

bool Interval::contains ( int  a_val  )  const [inline]

References m_begin, and m_end.

bool Interval::operator== ( const Interval p  )  const [inline]

test for equality

References m_begin, and m_end.

Member Data Documentation

int Interval::m_begin [private]

int Interval::m_end [private]

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

Generated on Fri Apr 5 04:25:07 2019 for Chombo + EB by  doxygen 1.5.5