CGAL 6.1 - Interval Skip List
Loading...
Searching...
No Matches
Interval Concept Reference

Definition

The concept Interval describes the requirements for the template argument Interval of a Interval_skip_list<Interval>.

The concept does not specify, whether the interval is open or closed. It is up to the implementer of a model for this concept to define that.

Has models
CGAL::Interval_skip_list_interval<Value>
CGAL::Level_interval
See also
Interval_skip_list
Examples
Interval_skip_list/intervals.cpp, and Interval_skip_list/isl_terrain.cpp.

Types

typedef unspecified_type Value
 The type of the lower and upper bound of the interval.
 

Creation

 Interval ()
 Default constructor.
 

Access Functions

Value inf () const
 Returns the lower bound.
 
Value sup () const
 Returns the upper bound.
 
bool contains (const Value &v) const
 Returns true, iff the interval contains v.
 
bool contains_interval (const Value &i, const Value &s) const
 Returns true, iff the interval contains (i,s).
 
bool operator== (const Interval &I) const
 Equality test.
 
bool operator!= (const Interval &I) const
 Inequality test.