1 #ifndef ARRANGEMENT_1D_H 2 #define ARRANGEMENT_1D_H 21 typedef pair<Real,Real> Interval;
22 typedef list<int> IDList;
28 typedef map<Real,LeftInterval> SortedIntervals;
31 void Insert(Real imin,Real imax,
int id);
32 void InsertUnique(Real imin,Real imax,
int id);
33 void GetIntervals(vector<Interval>& intervals,vector<const IDList*>& ids)
const;
34 void GetAllIntervals(vector<Interval>& intervals,vector<const IDList*>& ids)
const;
35 void GetOverlapIntervals(Real imin,Real imax,vector<Interval>& intervals,vector<const IDList*>& ids)
const;
38 SortedIntervals::iterator LocateInterval(Real x);
39 SortedIntervals::const_iterator LocateInterval(Real x)
const;
40 void Split(SortedIntervals::iterator interval,Real x);
42 SortedIntervals intervals;
Common math typedefs, constants, functions.
Definition: rayprimitives.h:132
An arrangement of 1-D intervals. Intervals identified by an integer ID.
Definition: Arrangement1D.h:18
Definition: Arrangement1D.h:23
Contains all definitions in the Math package.
Definition: WorkspaceBound.h:12
Contains all definitions in the Geometry package.
Definition: AnyGeometry.cpp:26