Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

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)
void define (int a_firstComp, int a_lastComp)
int begin () const
int end () const
int size () const
bool contains (int a_val) const

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

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

int Interval::begin  )  const [inline]
 

return first component number

int Interval::end  )  const [inline]
 

return last component number

int Interval::size  )  const [inline]
 

return last - first + 1

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


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 Jul 2 17:55:49 2004 for Chombo by doxygen 1.3.2