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

#include <closed_interval.hpp>

Public Types

typedef closed_interval
< DomainT, Compare > 
type
 
typedef DomainT domain_type
 

Public Member Functions

typedef ICL_COMPARE_DOMAIN (Compare, DomainT) domain_compare
 
 closed_interval ()
 Default constructor; yields an empty interval [0,0). More...
 
 closed_interval (const DomainT &val)
 Constructor for a closed singleton interval [val,val] More...
 
 closed_interval (const DomainT &low, const DomainT &up)
 Interval from low to up with bounds bounds More...
 
DomainT lower () const
 
DomainT upper () const
 
DomainT first () const
 
DomainT last () const
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<class DomainT , ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
boost::icl::closed_interval< DomainT, Compare >::closed_interval ( )
inline

Default constructor; yields an empty interval [0,0).

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::closed_interval< DomainT, Compare >::closed_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::closed_interval< DomainT, Compare >::closed_interval ( const DomainT &  low,
const DomainT &  up 
)
inline

Interval from low to up with bounds bounds

References boost::BOOST_CONCEPT_ASSERT().

Member Function Documentation

template<class DomainT , ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
DomainT boost::icl::closed_interval< DomainT, Compare >::first ( ) const
inline
template<class DomainT , ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
typedef boost::icl::closed_interval< DomainT, Compare >::ICL_COMPARE_DOMAIN ( Compare  ,
DomainT   
)
template<class DomainT , ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
DomainT boost::icl::closed_interval< DomainT, Compare >::last ( ) const
inline
template<class DomainT , ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
DomainT boost::icl::closed_interval< DomainT, Compare >::lower ( ) const
inline
template<class DomainT , ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)>
DomainT boost::icl::closed_interval< DomainT, Compare >::upper ( ) const
inline

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