rectangle Class Reference

#include <rectangle.h>

List of all members.


Detailed Description

Multidimensional rectangle.

Public Types

enum  { dim = RECTANGLE_DIMENSION }
typedef bool(rectangle::* comparator )(rectangle const &r) const

Public Member Functions

void operator+= (rectangle const &r)
 Join two rectangles: construct enveloping rectangle.
rectangle operator+ (rectangle const &r) const
 Join two rectangles: construct enveloping rectangle.
bool operator & (rectangle const &r) const
 Intersect two rectangles.
bool operator<= (rectangle const &r) const
 Check if rectangle is part of other rectanle.
bool operator>= (rectangle const &r) const
 Check if rectangle is part of other rectanle.
bool operator< (rectangle const &r) const
 Check if rectangle is strict subpart of other rectanle.
bool operator> (rectangle const &r) const
 Check if rectangle is strict subpart of other rectanle.
bool operator== (rectangle const &r) const
 Check if two rectangle are the same.
bool operator!= (rectangle const &r) const
 Check if two rectangle are not the same.

Public Attributes

coord_t boundary [dim *2]
 Boundary array contains coordinates of two vertices specifying rectangle of "dim" dimmension.

Friends

coord_t FASTDB_DLL_ENTRY distance (rectangle const &r, rectangle const &q)
 Calculate distance between two rectangles.
area_t area (rectangle const &r)
 Caclulate area of rectangle.

Member Typedef Documentation

typedef bool(rectangle::* comparator)(rectangle const &r) const


Member Enumeration Documentation

anonymous enum

Enumerator:
dim 


Member Function Documentation

void operator+= ( rectangle const &  r  )  [inline]

Join two rectangles: construct enveloping rectangle.

rectangle operator+ ( rectangle const &  r  )  const [inline]

Join two rectangles: construct enveloping rectangle.

bool operator & ( rectangle const &  r  )  const [inline]

Intersect two rectangles.

bool operator<= ( rectangle const &  r  )  const [inline]

Check if rectangle is part of other rectanle.

Returns:
true if this rectangle is part of rectangle r

bool operator>= ( rectangle const &  r  )  const [inline]

Check if rectangle is part of other rectanle.

Returns:
true if this rectangle contains rectangle r

bool operator< ( rectangle const &  r  )  const [inline]

Check if rectangle is strict subpart of other rectanle.

Returns:
true if this rectangle is part of rectangle r and not the same

bool operator> ( rectangle const &  r  )  const [inline]

Check if rectangle is strict subpart of other rectanle.

Returns:
true if this rectangle contains rectangle r and not the same

bool operator== ( rectangle const &  r  )  const [inline]

Check if two rectangle are the same.

bool operator!= ( rectangle const &  r  )  const [inline]

Check if two rectangle are not the same.


Friends And Related Function Documentation

coord_t FASTDB_DLL_ENTRY distance ( rectangle const &  r,
rectangle const &  q 
) [friend]

Calculate distance between two rectangles.

area_t area ( rectangle const &  r  )  [friend]

Caclulate area of rectangle.


Member Data Documentation

coord_t boundary[dim *2]

Boundary array contains coordinates of two vertices specifying rectangle of "dim" dimmension.

First vertex has coordinaes (boundary[0], ..., boundary[dim]) Second vertext has coordinates (boundary[dim], ..., boundary[dim*2-1]) Precondition: for i = 0, dim : boundary[i] <= boundary[dim+i]


Online Library Docs

sipXecs home page

Version 4.2.1-018930 2010-07-31T01:13:23 build16 abuild