Main Page   Class Hierarchy   Compound List   File List   Compound Members  

rectangle Class Reference

#include <rectangle.h>

List of all members.

Public Methods

void operator+= (rectangle const &r)
rectangle operator+ (rectangle const &r) const
bool operator & (rectangle const &r) const
bool operator<= (rectangle const &r) const
bool operator>= (rectangle const &r) const
bool operator< (rectangle const &r) const
bool operator> (rectangle const &r) const
bool operator== (rectangle const &r) const
bool operator!= (rectangle const &r) const

Public Attributes

coord_t boundary [dim *2]

Friends

coord_t FASTDB_DLL_ENTRY distance (rectangle const &r, rectangle const &q)
area_t area (rectangle const &r)


Detailed Description

Multidimensional rectangle


Member Function Documentation

bool rectangle::operator & rectangle const &    r const [inline]
 

Intersect two rectangles

bool rectangle::operator!= rectangle const &    r const [inline]
 

Check if two rectangle are not the same

rectangle rectangle::operator+ rectangle const &    r const [inline]
 

Join two rectangles: construct enveloping rectangle

void rectangle::operator+= rectangle const &    r [inline]
 

Join two rectangles: construct enveloping rectangle

bool rectangle::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 rectangle::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 rectangle::operator== rectangle const &    r const [inline]
 

Check if two rectangle are the same

bool rectangle::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 rectangle::operator>= rectangle const &    r const [inline]
 

Check if rectangle is part of other rectanle

Returns:
true if this rectangle contains rectangle r


Friends And Related Function Documentation

area_t area rectangle const &    r [friend]
 

Caclulate area of rectangle

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

Calculate distance between two rectangles


Member Data Documentation

coord_t rectangle::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]


The documentation for this class was generated from the following file:
Generated on Mon Oct 23 13:23:59 2006 for FastDB by doxygen1.2.18