~inkscape.dev/inkscape/copy-rotate-lpe-improvements

« back to all changes in this revision

Viewing changes to src/2geom/generic-interval.h

  • Committer: Jabiertxof
  • Date: 2016-03-14 16:37:50 UTC
  • mfrom: (13708.1.995 inkscape)
  • Revision ID: jtx@jtx.marker.es-20160314163750-ub71qzt0hxvax3nn
update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#define LIB2GEOM_SEEN_GENERIC_INTERVAL_H
33
33
 
34
34
#include <cassert>
 
35
#include <iostream>
35
36
#include <boost/none.hpp>
36
37
#include <boost/optional.hpp>
37
38
#include <2geom/coord.h>
291
292
    /// @}
292
293
 
293
294
    /** @brief Check whether this interval is empty. */
294
 
    bool isEmpty() { return !*this; };
295
 
    /// Alias of isEmpty() for STL similarity.
296
295
    bool empty() { return !*this; }
297
296
 
298
297
    /** @brief Union with another interval, gracefully handling empty ones. */
340
339
    return GenericOptInterval<C>(a) & GenericOptInterval<C>(b);
341
340
}
342
341
 
343
 
#ifdef _GLIBCXX_IOSTREAM
344
342
template <typename C>
345
343
inline std::ostream &operator<< (std::ostream &os, 
346
344
                                 Geom::GenericInterval<C> const &I) {
347
345
    os << "Interval("<<I.min() << ", "<<I.max() << ")";
348
346
    return os;
349
347
}
350
 
#endif
351
348
 
352
349
} // namespace Geom
353
350
#endif // !LIB2GEOM_SEEN_GENERIC_INTERVAL_H