intervals.h
This file contains the common type defitions used on the whole framework.
bool equals(const SimpleInterval &other) const
Returns true if other is equal to this interval.
Definition: intervals.h:136
bool operator<(const SimpleInterval &other) const
Compares two intervals.
Definition: intervals.h:115
Intervals & unite(const SimpleInterval &i)
Unites intervals in this with the given simple interval.
Definition: intervals.h:489
Intervals & subtract(const SimpleInterval &i)
Subtracts intervals in this with the given simple interval.
Definition: intervals.h:616
Intervals & operator+=(const Intervals &other)
Unites intervals in this with other.
Definition: intervals.h:525
Intervals & operator-=(const Intervals &other)
Subtracts intervals in this with other.
Definition: intervals.h:652
const QLinkedList< SimpleInterval > & getSimpleIntervalList() const
Returns a const reference to the list of simple intervals.
Definition: intervals.h:371
Intervals & operator<<(const SimpleInterval &value)
Unites a simple interval with intervals in this one.
Definition: intervals.h:593
Intervals operator|(const Intervals &other) const
Returns the union of this and other.
Definition: intervals.h:547
QString toString() const
Returns the string representation of the interval.
Definition: intervals.h:156
bool operator!=(const Intervals &other) const
Returns true if this and other are different.
Definition: intervals.h:675
Intervals operator-(const SimpleInterval &i) const
Returns the subtraction of this and the given simple interval.
Definition: intervals.h:640
Intervals operator-(const Intervals &other) const
Returns the subtraction of this and other.
Definition: intervals.h:628
Intervals operator&(const Intervals &other) const
Returns the intersection of this and other.
Definition: intervals.h:431
Intervals & operator|=(const Intervals &other)
Unites intervals in this with other.
Definition: intervals.h:571
Intervals operator+(const SimpleInterval &i) const
Returns the union of this and the given simple interval.
Definition: intervals.h:513
Intervals & operator&=(const SimpleInterval &value)
Intersects a simple interval with intervals in this one.
Definition: intervals.h:466
const_iterator begin() const
Returns a const iterator to the beginning of the list of simple intervals.
Definition: intervals.h:324
Intervals & unite(const Intervals &other)
Unites intervals in this with other.
Definition: intervals.h:477
Intervals & operator+=(const SimpleInterval &value)
Unites a simple interval with intervals in this one.
Definition: intervals.h:536
Intervals & intersect(const SimpleInterval &i)
Intersects intervals in this with the given simple interval.
Definition: intervals.h:419
Intervals & operator&=(const Intervals &other)
Intersects intervals in this with other.
Definition: intervals.h:455
Intervals & operator|=(const SimpleInterval &value)
Unites a simple interval with intervals in this one.
Definition: intervals.h:582
Intervals operator&(const SimpleInterval &i) const
Returns the intersection of this and the given simple interval.
Definition: intervals.h:443
QLinkedList< SimpleInterval >::const_iterator const_iterator
The const iterator on simple intervals.
Definition: intervals.h:224
const_iterator constBegin() const
Returns a const iterator to the beginning of the list of simple intervals.
Definition: intervals.h:337
QString toString() const
Returns the string representation of the interval.
Definition: intervals.h:300
Intervals operator|(const SimpleInterval &i) const
Returns the union of this and the given simple interval.
Definition: intervals.h:559
const_iterator constEnd() const
Returns a const iterator to the end of the list of simple intervals.
Definition: intervals.h:361
const_iterator end() const
Returns a const iterator to the end of the list of simple intervals.
Definition: intervals.h:349
Intervals operator+(const Intervals &other) const
Returns the union of this and other.
Definition: intervals.h:501
Intervals & operator-=(const SimpleInterval &value)
Subtracts a simple interval with intervals in this one.
Definition: intervals.h:663
Intervals & subtract(const Intervals &other)
Subtracts intervals from other to these ones.
Definition: intervals.h:604
Intervals & intersect(const Intervals &other)
Intersects intervals in this with other.
Definition: intervals.h:407