a list of rectangle inside Pr
More...
#include <util/rect_list.hpp>
Detailed Description
template<typename T, typename Pr>
class util::RectList< T, Pr >
a list of rectangle inside Pr
- Parameters:
-
| Pr | type of Prefix Sum Array it applies to |
| T | type of data of the prefix sum array |
List of all members.
Member Typedef Documentation
template<typename T, typename Pr>
Constructor & Destructor Documentation
template<typename T , typename Pr >
template<typename T , typename Pr >
Member Function Documentation
template<typename T , typename Pr >
template<typename T , typename Pr >
adds a rectangle into the list
Make partitions with respect to prefix sum if borders are xHigh < xLow or yHigh < yLow it is considered empty not worth to add to rectangle list
- Parameters:
-
| r | the rectangle to add to the rectangle list |
template<typename T , typename Pr >
template<typename T , typename Pr >
template<typename T , typename Pr >
computes the load of the most loaded rectangle.
- Returns:
- the load of the most loaded rectangle
template<typename T , typename Pr >
computes the load of the least loaded rectangle. recall that empty rectangles are never added to the list !
- Returns:
- the load of the least loaded rectangle
template<typename T , typename Pr >
checks if it is a valid partition of the load matrix.
The algorithm is : If all the rectangles are inside borders of rect_list; don't collide each other; and cover the whole matrix; then the partitioning is valid.
- Returns:
- Whether this RectList is a valid partitioning or not
Member Data Documentation
template<typename T, typename Pr>
template<typename T, typename Pr>
The documentation for this class was generated from the following files: