CGAL::Interval_skip_list_interval<Value>

Definition

The class Interval_skip_list_interval<Value> represents intervals with lower and upper bound of type Value. These intervals can be opened or closed at each endpoint.

#include <CGAL/Interval_skip_list_interval.h>

Creation

Interval_skip_list_interval<Value> i;
Default constructor.


Interval_skip_list_interval<Value> i ( Value i,
Value s,
bool ic = true,
bool uc = true);
Constructs the interval with infimum i and supremum s. The arguments ic and uc have value true, iff the interval is closed at the lower and upper bound, respectively.

Operations

bool i.inf_closed () returns true, iff the interval is closed at the lower bound.

bool i.sup_closed () returns true, iff the interval is closed at the upper bound.

I/O

The output operator is defined for std::ostream.

ostream& ostream& os << Interval_skip_list_interval<V> i
Inserts the interval i into the stream os.

Precondition: The output operator for Value is defined.

Is Model for the Concept

Interval