Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
An interval with real bounds. More...
#include <bayeux/mygsl/interval.h>
Public Member Functions | |
interval () | |
Default constructor. More... | |
interval (double min_, double max_, double eps_=AUTO_EPS) | |
Constructor. More... | |
interval (double min_, bool min_include_, double max_, bool max_include_, double eps_=AUTO_EPS) | |
Constructor. More... | |
virtual | ~interval () |
Destructor. More... | |
void | remove_min () |
void | remove_max () |
void | reset () |
void | set_min_included (bool inc_) |
void | set_max_included (bool inc_) |
bool | is_min_included () const |
bool | is_max_included () const |
bool | is_valid () const |
bool | has_min () const |
bool | has_max () const |
double | get_min () const |
double | get_max () const |
double | get_eps () const |
bool | union_with (const interval &) |
bool | intercept_with (const interval &) |
bool | is_in (double x_) const |
bool | is_in_safe (double x_) const |
bool | is_in_min_unsafe (double x_) const |
bool | is_in_max_unsafe (double x_) const |
interval | get_safe_interval (double eps_=AUTO_EPS) const |
void | set_eps (double eps_) |
void | set (double min_, double max_, double eps_=AUTO_EPS) |
bool | is_no_limit () const |
bool | is_empty () const |
void | open () |
void | close () |
bool | intersection_with (const interval &i_) const |
Public Member Functions inherited from datatools::i_serializable | |
i_serializable () | |
Default constructor. More... | |
virtual | ~i_serializable () |
Destructor. More... | |
virtual const std::string & | get_serial_tag () const =0 |
Return the serialization string identifier of the class. More... | |
Static Public Member Functions | |
static interval | make_empty () |
static interval | make_no_limit (double eps_=AUTO_EPS) |
static interval | make_neighbourhood (double value_, double delta_, bool included_=excluded) |
static interval | make_min (double min_, bool min_include_=excluded, double eps_=AUTO_EPS) |
static interval | make_max (double max_, bool max_include_=excluded, double eps_=AUTO_EPS) |
static interval | make_min_max_included (double min_, double max_, double eps_=AUTO_EPS) |
static interval | make_min_max_excluded (double min_, double max_, double eps_=AUTO_EPS) |
static interval | make_min_max (double min_, bool min_include_, double max_, bool max_include_, double eps_=AUTO_EPS) |
Static Public Attributes | |
static const double | NO_MIN_VALUE |
static const double | NO_MAX_VALUE |
static const double | NO_VALUE |
static const double | DEFAULT_EPS |
static const double | AUTO_EPS |
static const double | auto_eps |
static const char | IO_SEP |
static const char | IO_EMPTY |
static const char | IO_OPEN_INCL |
static const char | IO_OPEN_EXCL |
static const char | IO_CLOSE_INCL |
static const char | IO_CLOSE_EXCL |
static const bool | included |
static const bool | excluded |
Friends | |
std::ostream & | operator<< (std::ostream &out_, const interval &i_) |
std::istream & | operator>> (std::istream &in_, interval &i_) |
An interval with real bounds.
mygsl::interval::interval | ( | ) |
Default constructor.
mygsl::interval::interval | ( | double | min_, |
double | max_, | ||
double | eps_ = AUTO_EPS |
||
) |
Constructor.
mygsl::interval::interval | ( | double | min_, |
bool | min_include_, | ||
double | max_, | ||
bool | max_include_, | ||
double | eps_ = AUTO_EPS |
||
) |
Constructor.
|
virtual |
Destructor.
void mygsl::interval::close | ( | ) |
double mygsl::interval::get_eps | ( | ) | const |
double mygsl::interval::get_max | ( | ) | const |
double mygsl::interval::get_min | ( | ) | const |
bool mygsl::interval::has_max | ( | ) | const |
bool mygsl::interval::has_min | ( | ) | const |
bool mygsl::interval::intercept_with | ( | const interval & | ) |
bool mygsl::interval::intersection_with | ( | const interval & | i_ | ) | const |
bool mygsl::interval::is_empty | ( | ) | const |
bool mygsl::interval::is_in | ( | double | x_ | ) | const |
bool mygsl::interval::is_in_max_unsafe | ( | double | x_ | ) | const |
bool mygsl::interval::is_in_min_unsafe | ( | double | x_ | ) | const |
bool mygsl::interval::is_in_safe | ( | double | x_ | ) | const |
bool mygsl::interval::is_max_included | ( | ) | const |
bool mygsl::interval::is_min_included | ( | ) | const |
bool mygsl::interval::is_no_limit | ( | ) | const |
bool mygsl::interval::is_valid | ( | ) | const |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void mygsl::interval::open | ( | ) |
void mygsl::interval::remove_max | ( | ) |
void mygsl::interval::remove_min | ( | ) |
void mygsl::interval::reset | ( | ) |
void mygsl::interval::set | ( | double | min_, |
double | max_, | ||
double | eps_ = AUTO_EPS |
||
) |
void mygsl::interval::set_eps | ( | double | eps_ | ) |
void mygsl::interval::set_max_included | ( | bool | inc_ | ) |
void mygsl::interval::set_min_included | ( | bool | inc_ | ) |
bool mygsl::interval::union_with | ( | const interval & | ) |
|
friend |
|
friend |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |