#include <Extent.hh>
Public Member Functions | |
| Extent (size_t) | |
| Extent constructor. | |
| ULong | getRangeLowerBound (DimensionHandle) const throw (ArrayIndexOutOfBounds) |
| Get range lower bound. | |
| ULong | getRangeUpperBound (DimensionHandle) const throw (ArrayIndexOutOfBounds) |
| Get range upper bound. | |
| void | setRangeUpperBound (DimensionHandle, ULong) throw (ArrayIndexOutOfBounds) |
| Set range upper bound. | |
| void | setRangeLowerBound (DimensionHandle, ULong) throw (ArrayIndexOutOfBounds) |
| Set range lower bound. | |
| bool | overlaps (const Extent &) const |
| Check whether both extents overlap. | |
| size_t | size () const |
| Get the number of ranges in this Extent. | |
Private Attributes | |
| RangeSet | ranges |
It is made of ranges in each dimension of the routing space. Routing regions are described using a set of extents.
Definition at line 47 of file Extent.hh.
| Extent | ( | size_t | n | ) |
Extent constructor.
| n | Number of dimensions in the routing space |
Definition at line 44 of file Extent.cc.
References Dimension::getLowerBound(), Dimension::getUpperBound(), and Extent::ranges.

| ULong getRangeLowerBound | ( | DimensionHandle | handle | ) | const throw (ArrayIndexOutOfBounds) |
Get range lower bound.
Definition at line 54 of file Extent.cc.
Referenced by Extent::overlaps(), BasicMessage::serialize(), and BasicMessage::writeExtents().
| ULong getRangeUpperBound | ( | DimensionHandle | handle | ) | const throw (ArrayIndexOutOfBounds) |
Get range upper bound.
Definition at line 67 of file Extent.cc.
Referenced by Extent::overlaps(), BasicMessage::serialize(), and BasicMessage::writeExtents().
| void setRangeUpperBound | ( | DimensionHandle | handle, | |
| ULong | val | |||
| ) | throw (ArrayIndexOutOfBounds) |
Set range upper bound.
Definition at line 93 of file Extent.cc.
Referenced by RoutingSpace::createExtent(), BasicMessage::deserialize(), and BasicMessage::readExtents().
| void setRangeLowerBound | ( | DimensionHandle | handle, | |
| ULong | val | |||
| ) | throw (ArrayIndexOutOfBounds) |
Set range lower bound.
Definition at line 80 of file Extent.cc.
Referenced by RoutingSpace::createExtent(), BasicMessage::deserialize(), and BasicMessage::readExtents().
| bool overlaps | ( | const Extent & | e | ) | const |
Check whether both extents overlap.
Definition at line 115 of file Extent.cc.
References certi::D, Extent::getRangeLowerBound(), Extent::getRangeUpperBound(), pdTrace, and Extent::size().

| size_t size | ( | ) | const |
Get the number of ranges in this Extent.
Definition at line 106 of file Extent.cc.
References Extent::ranges.
Referenced by Extent::overlaps().
1.5.5