40 #ifndef GEOGRAM_BASIC_RANGE
41 #define GEOGRAM_BASIC_RANGE
76 return val_ == rhs.val_;
80 return val_ != rhs.val_;
84 return val_ < rhs.val_;
92 return val_ - it.val_;
141 return end_ - begin_;
151 return *(begin_ + i);
184 return ptr_ == rhs.ptr_;
188 return ptr_ != rhs.ptr_;
192 return ptr_ < rhs.ptr_;
195 const index_t& operator*()
const {
201 return index_t(ptr_ - it.ptr_);
245 return ptr_ == rhs.ptr_;
249 return ptr_ != rhs.ptr_;
253 return ptr_ < rhs.ptr_;
256 const index_t& operator*()
const {
267 return index_t(ptr_ - it.ptr_);
302 begin_(begin, begin, end),
303 end_(end,begin,end) {
340 begin_(begin, begin, end),
341 end_(end,begin,end) {
A function to suppress unused parameters compilation warnings.
Assertion checking mechanism.
#define geo_debug_assert(x)
Verifies that a condition is met.
Encapsulates a const pointer to an element in an index_t array.
Wraps an integer to be used with the range-based for construct.
Encapsulates a pointer to an element in an index_t array.
A generic index_range bounded by two "non-iterators".
index_t nb() const
gets the number of elements in the index_range
index_as_iterator end() const
gets one position past the last index
index_range(index_as_iterator b, index_as_iterator e)
index_range constructor
index_t operator[](index_t i) const
direct access to an arbitrary element in the index_range
index_as_iterator begin() const
gets the first index
T * data()
Gets a pointer to the array of elements.
Types and functions for memory manipulation.
Global Vorpaline namespace.
void geo_argused(const T &)
Suppresses compiler warnings about unused parameters.
geo_index_t index_t
The type for storing and manipulating indices.
Types and functions for numbers manipulation.