rasdaman complete source
|
#include <sinterval.hh>
Public Member Functions | |
r_Sinterval () | |
default constructor creates an interval with open bounds More... | |
r_Sinterval (char *) throw (r_Eno_interval) | |
constructor taking string representation (e.g. *:200 ) More... | |
r_Sinterval (r_Range low, r_Range high) throw ( r_Eno_interval ) | |
constructor for an interval with fixed bounds More... | |
bool | operator== (const r_Sinterval &) const |
equal operator More... | |
bool | operator!= (const r_Sinterval &) const |
non equal operator - negation of equal operator More... | |
bool | intersects_with (const r_Sinterval &) const |
determines if the self interval intersects with the delivered one More... | |
void | print_status (std::ostream &s=std::cout) const |
writes the state of the object to the specified stream More... | |
char * | get_string_representation () const |
gives back the string representation More... | |
r_Sinterval (char, r_Range high) | |
r_Sinterval (r_Range low, char) | |
r_Sinterval (char, char) | |
r_Range | low () const |
r_Range | high () const |
bool | is_low_fixed () const |
bool | is_high_fixed () const |
void | set_low (r_Range low) throw ( r_Eno_interval ) |
void | set_high (r_Range high) throw ( r_Eno_interval ) |
void | set_low (char) |
void | set_high (char) |
r_Range | get_extent () const throw (r_Error) |
get the size of one dimensional interval as range. More... | |
void | set_interval (r_Range low, r_Range high) throw ( r_Eno_interval ) |
void | set_interval (char, r_Range high) |
void | set_interval (r_Range low, char) |
void | set_interval (char, char) |
r_Sinterval & | union_of (const r_Sinterval &, const r_Sinterval &) throw ( r_Eno_interval ) |
r_Sinterval & | union_with (const r_Sinterval &) throw ( r_Eno_interval ) |
r_Sinterval & | operator+= (const r_Sinterval &) throw ( r_Eno_interval ) |
r_Sinterval | create_union (const r_Sinterval &) const throw ( r_Eno_interval ) |
r_Sinterval | operator+ (const r_Sinterval &) const throw ( r_Eno_interval ) |
r_Sinterval & | difference_of (const r_Sinterval &, const r_Sinterval &) throw ( r_Eno_interval ) |
r_Sinterval & | difference_with (const r_Sinterval &) throw ( r_Eno_interval ) |
r_Sinterval & | operator-= (const r_Sinterval &) throw ( r_Eno_interval ) |
r_Sinterval | create_difference (const r_Sinterval &) const throw ( r_Eno_interval ) |
r_Sinterval | operator- (const r_Sinterval &) const throw ( r_Eno_interval ) |
r_Sinterval & | intersection_of (const r_Sinterval &, const r_Sinterval &) throw ( r_Eno_interval ) |
r_Sinterval & | intersection_with (const r_Sinterval &) throw ( r_Eno_interval ) |
r_Sinterval & | operator*= (const r_Sinterval &) throw ( r_Eno_interval) |
r_Sinterval | create_intersection (const r_Sinterval &) const throw ( r_Eno_interval ) |
r_Sinterval | operator* (const r_Sinterval &) const throw ( r_Eno_interval ) |
r_Sinterval & | closure_of (const r_Sinterval &, const r_Sinterval &) throw ( r_Eno_interval ) |
r_Sinterval & | closure_with (const r_Sinterval &) throw ( r_Eno_interval ) |
r_Sinterval | create_closure (const r_Sinterval &) const throw ( r_Eno_interval ) |
r_Bytes | get_storage_size () const |
calculate the size of the storage space occupied More... | |
r_Sinterval::r_Sinterval | ( | ) |
default constructor creates an interval with open bounds
r_Sinterval::r_Sinterval | ( | char * | ) | ||
throw | ( | r_Eno_interval | |||
) |
constructor taking string representation (e.g. *:200 )
r_Sinterval::r_Sinterval | ( | r_Range | low, |
r_Range | high | ||
) | |||
throw | ( | r_Eno_interval | |
) |
constructor for an interval with fixed bounds
r_Sinterval::r_Sinterval | ( | char | , |
r_Range | high | ||
) |
r_Sinterval::r_Sinterval | ( | r_Range | low, |
char | |||
) |
r_Sinterval::r_Sinterval | ( | char | , |
char | |||
) |
r_Sinterval& r_Sinterval::closure_of | ( | const r_Sinterval & | , |
const r_Sinterval & | |||
) | |||
throw | ( | r_Eno_interval | |
) |
r_Sinterval& r_Sinterval::closure_with | ( | const r_Sinterval & | ) | ||
throw | ( | r_Eno_interval | |||
) |
r_Sinterval r_Sinterval::create_closure | ( | const r_Sinterval & | ) | const | |
throw | ( | r_Eno_interval | |||
) |
r_Sinterval r_Sinterval::create_difference | ( | const r_Sinterval & | ) | const | |
throw | ( | r_Eno_interval | |||
) |
r_Sinterval r_Sinterval::create_intersection | ( | const r_Sinterval & | ) | const | |
throw | ( | r_Eno_interval | |||
) |
r_Sinterval r_Sinterval::create_union | ( | const r_Sinterval & | ) | const | |
throw | ( | r_Eno_interval | |||
) |
r_Sinterval& r_Sinterval::difference_of | ( | const r_Sinterval & | , |
const r_Sinterval & | |||
) | |||
throw | ( | r_Eno_interval | |
) |
r_Sinterval& r_Sinterval::difference_with | ( | const r_Sinterval & | ) | ||
throw | ( | r_Eno_interval | |||
) |
get the size of one dimensional interval as range.
r_Bytes r_Sinterval::get_storage_size | ( | ) | const |
calculate the size of the storage space occupied
The string representation delivered by this method is allocated using { malloc()} and has to be free unsing { free()} in the end. It can be used to construct a { r_Sinterval} again with a special constructor provided. The string representation is build using { print_status()}.
char* r_Sinterval::get_string_representation | ( | ) | const |
gives back the string representation
|
inline |
r_Sinterval& r_Sinterval::intersection_of | ( | const r_Sinterval & | , |
const r_Sinterval & | |||
) | |||
throw | ( | r_Eno_interval | |
) |
r_Sinterval& r_Sinterval::intersection_with | ( | const r_Sinterval & | ) | ||
throw | ( | r_Eno_interval | |||
) |
bool r_Sinterval::intersects_with | ( | const r_Sinterval & | ) | const |
determines if the self interval intersects with the delivered one
|
inline |
|
inline |
|
inline |
bool r_Sinterval::operator!= | ( | const r_Sinterval & | ) | const |
non equal operator - negation of equal operator
Two intervals are equal if they have the same lower and upper bound.
r_Sinterval r_Sinterval::operator* | ( | const r_Sinterval & | ) | const | |
throw | ( | r_Eno_interval | |||
) |
r_Sinterval& r_Sinterval::operator*= | ( | const r_Sinterval & | ) | ||
throw | ( | r_Eno_interval | |||
) |
r_Sinterval r_Sinterval::operator+ | ( | const r_Sinterval & | ) | const | |
throw | ( | r_Eno_interval | |||
) |
r_Sinterval& r_Sinterval::operator+= | ( | const r_Sinterval & | ) | ||
throw | ( | r_Eno_interval | |||
) |
r_Sinterval r_Sinterval::operator- | ( | const r_Sinterval & | ) | const | |
throw | ( | r_Eno_interval | |||
) |
r_Sinterval& r_Sinterval::operator-= | ( | const r_Sinterval & | ) | ||
throw | ( | r_Eno_interval | |||
) |
bool r_Sinterval::operator== | ( | const r_Sinterval & | ) | const |
equal operator
void r_Sinterval::print_status | ( | std::ostream & | s = std::cout | ) | const |
writes the state of the object to the specified stream
void r_Sinterval::set_high | ( | r_Range | high | ) | |
throw | ( | r_Eno_interval | |||
) |
|
inline |
void r_Sinterval::set_interval | ( | r_Range | low, |
r_Range | high | ||
) | |||
throw | ( | r_Eno_interval | |
) |
void r_Sinterval::set_interval | ( | char | , |
r_Range | high | ||
) |
void r_Sinterval::set_interval | ( | r_Range | low, |
char | |||
) |
void r_Sinterval::set_interval | ( | char | , |
char | |||
) |
void r_Sinterval::set_low | ( | r_Range | low | ) | |
throw | ( | r_Eno_interval | |||
) |
|
inline |
r_Sinterval& r_Sinterval::union_of | ( | const r_Sinterval & | , |
const r_Sinterval & | |||
) | |||
throw | ( | r_Eno_interval | |
) |
r_Sinterval& r_Sinterval::union_with | ( | const r_Sinterval & | ) | ||
throw | ( | r_Eno_interval | |||
) |