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

#include <discrete_interval.hpp>

Public Types

typedef discrete_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
 
 discrete_interval ()
 Default constructor; yields an empty interval [0,0). More...
 
 discrete_interval (const DomainT &val)
 Constructor for a closed singleton interval [val,val] More...
 
 discrete_interval (const DomainT &low, const DomainT &up, interval_bounds bounds=interval_bounds::right_open(), discrete_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 discrete_interval open (const DomainT &lo, const DomainT &up)
 
static discrete_interval right_open (const DomainT &lo, const DomainT &up)
 
static discrete_interval left_open (const DomainT &lo, const DomainT &up)
 
static discrete_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::discrete_interval< DomainT, Compare >::bounded_domain_type
template<class DomainT , ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
typedef DomainT boost::icl::discrete_interval< DomainT, Compare >::domain_type
template<class DomainT , ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
typedef discrete_interval<DomainT,Compare> boost::icl::discrete_interval< DomainT, Compare >::type

Constructor & Destructor Documentation

template<class DomainT , ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
boost::icl::discrete_interval< DomainT, Compare >::discrete_interval ( )
inline
template<class DomainT , ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
boost::icl::discrete_interval< DomainT, Compare >::discrete_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::discrete_interval< DomainT, Compare >::discrete_interval ( const DomainT &  low,
const DomainT &  up,
interval_bounds  bounds = interval_bounds::right_open(),
discrete_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::discrete_interval< DomainT, Compare >::bounds ( ) const
inline
template<class DomainT , ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
static discrete_interval boost::icl::discrete_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::discrete_interval< DomainT, Compare >::ICL_COMPARE_DOMAIN ( Compare  ,
DomainT   
)
template<class DomainT , ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
static discrete_interval boost::icl::discrete_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::discrete_interval< DomainT, Compare >::lower ( ) const
inline
template<class DomainT , ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
static discrete_interval boost::icl::discrete_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 discrete_interval boost::icl::discrete_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::discrete_interval< DomainT, Compare >::upper ( ) const
inline

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