Class PartitioningBoxes stores a set of bounding boxes and can check if a point is in the set of partitioning boxes or not in a more optimized way than just looping over a std::vector<PartitioningBox>.
More...
#include <ibtk/PartitioningBox.h>
It is possible for the set of bounding boxes to be empty: in that case the bounds are [oo, oo) in each dimension.
◆ PartitioningBoxes() [1/3]
| IBTK::PartitioningBoxes::PartitioningBoxes |
( |
| ) |
|
|
default |
Default constructor: an empty collection of partitioning boxes with bounds at oo.
◆ PartitioningBoxes() [2/3]
template<typename ForwardIterator >
| IBTK::PartitioningBoxes::PartitioningBoxes |
( |
const ForwardIterator |
begin, |
|
|
const ForwardIterator |
end |
|
) |
| |
|
inline |
◆ PartitioningBoxes() [3/3]
Constructor. Uses the finest level boxes on the provided PatchHierarchy to create a set of bounding boxes.
◆ bottom()
| const Point & IBTK::PartitioningBoxes::bottom |
( |
| ) |
const |
|
inline |
Get the bottom left corner of the partitioning box bounding all other partitioning boxes.
◆ top()
| const Point & IBTK::PartitioningBoxes::top |
( |
| ) |
const |
|
inline |
Get the top right corner of the partitioning box bounding all other partitioning boxes. Note that this point is not in the collection of boxes.
◆ contains()
| bool IBTK::PartitioningBoxes::contains |
( |
const Point & |
point | ) |
const |
|
inline |
Return true if the point is inside the set of boxes and false otherwise.
◆ begin()
◆ end()
Return a pointer to one past the end of the end of the partitioning box array.
◆ d_bounding_partitioning_box
◆ d_boxes
The documentation for this class was generated from the following files: