|
|
| Box (coord_t x=0, coord_t y=0, coord_t width=0, coord_t height=0) |
| |
|
| Box (const Box &box) |
| |
|
void | reset () |
| |
|
void | expand (coord_t x, coord_t y) |
| |
|
void | expand (const drain::Point2D< coord_t > &p) |
| |
|
void | expand (const Box &box) |
| | Update this box such that it contains the given bbox .
|
| |
|
void | expandHorz (const Box &box) |
| |
|
void | expandVert (const Box &box) |
| |
|
void | expandHorz (coord_t x) |
| |
|
void | expandVert (coord_t y) |
| |
|
drain::Point2D< coord_t > & | getLocation () |
| |
|
const drain::Point2D< coord_t > & | getLocation () const |
| |
|
drain::Frame2D< coord_t > & | getFrame () |
| |
|
const drain::Frame2D< coord_t > & | getFrame () const |
| |
|
bool | isDefined () const |
| |
|
| Point2D (T x=0, T y=0) |
| |
|
| Point2D (const Point2D &p) |
| |
|
template<size_t N> |
| | Point2D (drain::UniTuple< T, N > &tuple, size_t i) |
| |
|
Point2D & | operator= (const Point2D &p) |
| |
|
template<class T2 > |
| Point2D< T > & | setLocation (T2 x, T2 y) |
| |
|
template<class T2 > |
| Point2D< T > & | setLocation (const Point2D< T2 > &p) |
| |
|
| UniTuple (const TT &... args) |
| |
|
| UniTuple (const UniTuple< T, N > &t) |
| | Copy constructor.
|
| |
|
| UniTuple (std::initializer_list< S > l) |
| |
|
tuple_t & | operator= (const tuple_t &t) |
| |
|
tuple_t & | operator= (const value_type &value) |
| |
|
tuple_t & | operator= (std::initializer_list< S > l) |
| |
| virtual const_iterator | begin () const override final |
| |
| virtual iterator | begin () override final |
| |
| virtual const_iterator | end () const override final |
| |
| virtual iterator | end () override final |
| |
|
const tuple_t & | tuple () const |
| |
|
tuple_t & | tuple () |
| |
|
tuple_t & | tuple (const TT &... args) |
| |
|
void | debug (std::ostream &ostr) const |
| |
| const T & | at (size_t i) const |
| | Return const reference to element i.
|
| |
| T & | at (size_t i) |
| | Return reference to element i.
|
| |
|
const T & | operator[] (size_t i) const |
| |
|
T & | operator[] (size_t i) |
| |
|
bool | operator== (const tuplebase_t &t) const |
| | Equality operator.
|
| |
| bool | operator== (const value_type &t) const |
| | Equality operator against single value.
|
| |
|
bool | operator!= (const tuplebase_t &t) const |
| | Inequality operator.
|
| |
|
T & | toSequence (T &sequence) const |
| | Copy elements to a Sequence, like stl::list, stl::set or stl::vector.
|
| |
|
void | set (const tuplebase_t &t) |
| |
|
void | set (const TupleBase< T2, N2 > &t) |
| | Assign tuple of different type and/or size.
|
| |
|
void | set (const T &arg) |
| |
|
void | set (const T &arg, const SS &... rest) |
| | Set element(s).
|
| |
|
void | set (std::initializer_list< T > l) |
| |
| tuplebase_t & | assignSequence (T &sequence, bool LENIENT=false) |
| | Proposed for tuples only; derived classes should not shadow this.
|
| |
|
void | fill (T i) |
| | Set all the elements to i.
|
| |
|
void | clear () |
| |
| virtual void | toStreamFormatted (std::ostream &ostr, char separator=',') const |
| |
|
virtual void | toStream (std::ostream &ostr) const |
| |
|
std::string | toStr (char separator=',') const |
| |
|
virtual void | updateTuple () |
| |
|
| Frame2D (T width=0, T height=0) |
| |
|
| Frame2D (const Frame2D< T > &geometry) |
| |
|
template<class T2 > |
| | Frame2D (const Frame2D< T2 > &geometry) |
| |
|
template<size_t N> |
| | Frame2D (drain::UniTuple< T, N > &tuple, size_t i) |
| |
|
Frame2D & | operator= (const Frame2D &geometry) |
| |
|
template<class T2 > |
| Frame2D & | operator= (const T2 &frame) |
| |
|
void | setWidth (T w) |
| |
|
void | setHeight (T h) |
| |
|
void | setArea (T w, T h) |
| |
|
void | setArea (const drain::UniTuple< T, 2 > &tuple) |
| |
|
T | getWidth () const |
| |
|
T | getHeight () const |
| |
|
T | getArea () const |
| |
|
bool | empty () const |
| |
template<class T>
struct drain::Box< T >
Something that has coordinates (x,y) and dimensions (width, height).