![]() |
Spatial C++ Library
Generic Multi-Dimensional Containers and Spatial Operations
|
A model of Region Predicate that defines an orthogonal region and checks if a value of type Key is contained within the boundaries marked by lower and upper.
More...
#include <spatial_region.hpp>
Inherits Compare.
Public Member Functions | |
| bounds () | |
| The default constructor leaves everything un-initialized. More... | |
| bounds (const Compare &compare, const Key &lower, const Key &upper) | |
Set the lower and upper boundary for the orthogonal region search. More... | |
| relative_order | operator() (dimension_type dim, dimension_type, const Key &key) const |
The operator that returns true if the key is within the boundaries, false if it isn't. More... | |
Private Attributes | |
| Key | _lower |
| The lower bound for the orthogonal region. More... | |
| Key | _upper |
| The upper bound for the orthogonal region. More... | |
A model of Region Predicate that defines an orthogonal region and checks if a value of type Key is contained within the boundaries marked by lower and upper.
To be very specific, given a dimension
we define that
is contained in the boundaries
if:
Simply stated, bounds used in a spatial::region_iterator will match all keys that are within the region defined by lower and upper, but not "touching" the upper edge.
| Key | The type used during the comparison. |
| Compare | The comparison functor using to compare 2 objects of type Key along the same dimension. |
Definition at line 46 of file spatial_region.hpp.
| spatial::bounds< Key, Compare >::bounds | ( | ) |
The default constructor leaves everything un-initialized.
Definition at line 53 of file spatial_region.hpp.
| spatial::bounds< Key, Compare >::bounds | ( | const Compare & | compare, |
| const Key & | lower, | ||
| const Key & | upper | ||
| ) |
Set the lower and upper boundary for the orthogonal region search.
Definition at line 60 of file spatial_region.hpp.
| relative_order spatial::bounds< Key, Compare >::operator() | ( | dimension_type | dim, |
| dimension_type | , | ||
| const Key & | key | ||
| ) | const |
The operator that returns true if the key is within the boundaries, false if it isn't.
Definition at line 69 of file spatial_region.hpp.
|
private |
The lower bound for the orthogonal region.
Definition at line 82 of file spatial_region.hpp.
|
private |
The upper bound for the orthogonal region.
Definition at line 87 of file spatial_region.hpp.