Emdee
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Friends | List of all members
Range Class Reference

The Range class defines a simple mathematical range used by the Processor class. More...

#include <range.h>

Public Member Functions

 Range ()
 
 Range (int rank, int nDecomposedElements, int nElementsTotal)
 
int firstElement ()
 
int lastElement ()
 
int nElements ()
 

Friends

std::ostream & operator<< (std::ostream &os, const Range &dt)
 

Detailed Description

The Range class defines a simple mathematical range used by the Processor class.

Constructor & Destructor Documentation

Range::Range ( )

Dummy range object with no data.

Range::Range ( int  rank,
int  nDecomposedElements,
int  nElementsTotal 
)

Sets up a range object by decomposing the number of elements to the given number of decomposed elements (number of processors).

Member Function Documentation

int Range::firstElement ( )
inline
int Range::lastElement ( )
inline
int Range::nElements ( )
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Range dt 
)
friend

The documentation for this class was generated from the following files: