Class Rectangles

Class Documentation

class Rectangles

A collection of rectangles (with possible duplicates).

Public Types

typedef std::vector<Rectangle>::const_iterator const_iterator
typedef std::vector<Rectangle>::size_type size_type

Public Functions

Rectangles()
Rectangles(std::initializer_list<Rectangle> const &rects)
void add(Rectangle const &rect)
void remove(Rectangle const &rect)

removes at most one matching rectangle

void clear()
Rectangle bounding_rectangle() const
void confine(Point &point) const
const_iterator begin() const
const_iterator end() const
size_type size() const
bool operator==(Rectangles const &rect) const
bool operator!=(Rectangles const &rect) const