Spatial C++ Library
Generic Multi-Dimensional Containers and Spatial Operations
|
A model of Region Predicate that checks if a value of type Key
is contained within the open boundaries defined by lower
and upper
.
More...
#include <spatial_open_region.hpp>
Inherits Compare.
Public Member Functions | |
open_bounds () | |
The default constructor leaves everything un-initialized. More... | |
open_bounds (const Compare &compare, const Key &lower, const Key &upper) | |
Set the lower and upper boundary for the orthogonal range search in the region. More... | |
relative_order | operator() (dimension_type dim, dimension_type, const Key &key) const |
The operator that returns wheather the point is in region or not. More... | |
Private Attributes | |
Key | _lower |
The lower bound for the orthogonal region iterator. More... | |
Key | _upper |
The upper bound for the orthogonal region iterator. More... | |
A model of Region Predicate that checks if a value of type Key
is contained within the open boundaries defined by lower
and upper
.
To be very specific, given a dimension we define that is contained in the open boundaries if:
Simply stated, open_bounds used in a region_iterator will match all keys that are strictly within the region defined by lower
and upper
.
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 41 of file spatial_open_region.hpp.
spatial::open_bounds< Key, Compare >::open_bounds | ( | ) |
The default constructor leaves everything un-initialized.
Definition at line 48 of file spatial_open_region.hpp.
spatial::open_bounds< Key, Compare >::open_bounds | ( | const Compare & | compare, |
const Key & | lower, | ||
const Key & | upper | ||
) |
Set the lower and upper boundary for the orthogonal range search in the region.
The constructor does not check that elements of lower are lesser than elements of upper
along any dimension. Therefore you must be careful of the order in which these values are inserted.
compare | The comparison functor, for initialization. |
lower | The value of the lower bound. |
upper | The value of the upper bound. |
Definition at line 64 of file spatial_open_region.hpp.
relative_order spatial::open_bounds< Key, Compare >::operator() | ( | dimension_type | dim, |
dimension_type | , | ||
const Key & | key | ||
) | const |
The operator that returns wheather the point is in region or not.
dim | The dimension of comparison, that should always be less than the rank of the type Key . |
key | The value to compare to the interval defined by _lower and _upper . |
key
is lesser or equal to _lower
; spatial::above to indicate that key
is great or equal to _upper
; spatial::matching to indicate that key
is strictly within _lower
and _upper. Definition at line 82 of file spatial_open_region.hpp.
|
private |
The lower bound for the orthogonal region iterator.
Definition at line 95 of file spatial_open_region.hpp.
|
private |
The upper bound for the orthogonal region iterator.
Definition at line 100 of file spatial_open_region.hpp.