Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::icl::continuous_interval< DomainT, Compare > Class Template Reference

#include <continuous_interval.hpp>

Public Types

typedef continuous_interval
< DomainT, Compare > 
type
 
typedef DomainT domain_type
 
typedef bounded_value< DomainT >
::type 
bounded_domain_type
 

Public Member Functions

typedef ICL_COMPARE_DOMAIN (Compare, DomainT) domain_compare
 
 continuous_interval ()
 Default constructor; yields an empty interval [0,0). More...
 
 continuous_interval (const DomainT &val)
 Constructor for a closed singleton interval [val,val] More...
 
 continuous_interval (const DomainT &low, const DomainT &up, interval_bounds bounds=interval_bounds::right_open(), continuous_interval *=0)
 Interval from low to up with bounds bounds More...
 
domain_type lower () const
 
domain_type upper () const
 
interval_bounds bounds () const
 

Static Public Member Functions

static continuous_interval open (const DomainT &lo, const DomainT &up)
 
static continuous_interval right_open (const DomainT &lo, const DomainT &up)
 
static continuous_interval left_open (const DomainT &lo, const DomainT &up)
 
static continuous_interval closed (const DomainT &lo, const DomainT &up)
 

Member Typedef Documentation

template<class DomainT, ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
typedef bounded_value<DomainT>::type boost::icl::continuous_interval< DomainT, Compare >::bounded_domain_type
template<class DomainT, ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
typedef DomainT boost::icl::continuous_interval< DomainT, Compare >::domain_type
template<class DomainT, ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
typedef continuous_interval<DomainT,Compare> boost::icl::continuous_interval< DomainT, Compare >::type

Constructor & Destructor Documentation

template<class DomainT, ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
boost::icl::continuous_interval< DomainT, Compare >::continuous_interval ( const DomainT &  val)
inlineexplicit

Constructor for a closed singleton interval [val,val]

References boost::BOOST_CONCEPT_ASSERT(), and boost::BOOST_STATIC_ASSERT().

template<class DomainT, ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
boost::icl::continuous_interval< DomainT, Compare >::continuous_interval ( const DomainT &  low,
const DomainT &  up,
interval_bounds  bounds = interval_bounds::right_open(),
continuous_interval< DomainT, Compare > *  = 0 
)
inline

Interval from low to up with bounds bounds

References boost::BOOST_CONCEPT_ASSERT(), and boost::BOOST_STATIC_ASSERT().

Member Function Documentation

template<class DomainT, ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
interval_bounds boost::icl::continuous_interval< DomainT, Compare >::bounds ( ) const
inline
template<class DomainT, ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
static continuous_interval boost::icl::continuous_interval< DomainT, Compare >::closed ( const DomainT &  lo,
const DomainT &  up 
)
inlinestatic
template<class DomainT, ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
typedef boost::icl::continuous_interval< DomainT, Compare >::ICL_COMPARE_DOMAIN ( Compare  ,
DomainT   
)
template<class DomainT, ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
static continuous_interval boost::icl::continuous_interval< DomainT, Compare >::left_open ( const DomainT &  lo,
const DomainT &  up 
)
inlinestatic
template<class DomainT, ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
domain_type boost::icl::continuous_interval< DomainT, Compare >::lower ( ) const
inline
template<class DomainT, ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
static continuous_interval boost::icl::continuous_interval< DomainT, Compare >::open ( const DomainT &  lo,
const DomainT &  up 
)
inlinestatic
template<class DomainT, ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
static continuous_interval boost::icl::continuous_interval< DomainT, Compare >::right_open ( const DomainT &  lo,
const DomainT &  up 
)
inlinestatic
template<class DomainT, ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
domain_type boost::icl::continuous_interval< DomainT, Compare >::upper ( ) const
inline

The documentation for this class was generated from the following file: