Searched defs:interval_traits (Results 1 – 9 of 9) sorted by relevance
/third_party/boost/libs/icl/example/custom_interval_/ |
D | custom_interval.cpp | 45 struct interval_traits< MyInterval > //1. Partially specialize interval_traits for struct 48 typedef MyInterval interval_type; //2.1 MyInterval will be the interval_type 49 typedef int domain_type; //2.2 The elements of the domain are ints 50 typedef std::less<int> domain_compare; //2.3 This is the way our element shall be ordered. 54 static interval_type construct(const domain_type& lo, const domain_type& up) in construct() 57 static domain_type lower(const interval_type& inter_val){ return inter_val.first(); }; in lower() 58 static domain_type upper(const interval_type& inter_val){ return inter_val.past(); }; in upper()
|
/third_party/boost/boost/icl/ |
D | open_interval.hpp | 77 struct interval_traits< icl::open_interval<DomainT, Compare> > struct 79 typedef DomainT domain_type; 80 typedef ICL_COMPARE_DOMAIN(Compare,DomainT) domain_compare; 81 typedef icl::open_interval<DomainT, Compare> interval_type; 83 static interval_type construct(const domain_type& lo, const domain_type& up) in construct() 88 static domain_type lower(const interval_type& inter_val){ return inter_val.lower(); } in lower() 89 static domain_type upper(const interval_type& inter_val){ return inter_val.upper(); } in upper()
|
D | right_open_interval.hpp | 75 struct interval_traits< icl::right_open_interval<DomainT, Compare> > struct 77 typedef DomainT domain_type; 78 typedef ICL_COMPARE_DOMAIN(Compare,DomainT) domain_compare; 79 typedef icl::right_open_interval<DomainT, Compare> interval_type; 81 static interval_type construct(const domain_type& lo, const domain_type& up) in construct() 86 static domain_type lower(const interval_type& inter_val){ return inter_val.lower(); } in lower() 87 static domain_type upper(const interval_type& inter_val){ return inter_val.upper(); } in upper()
|
D | left_open_interval.hpp | 76 struct interval_traits< icl::left_open_interval<DomainT, Compare> > struct 78 typedef DomainT domain_type; 79 typedef ICL_COMPARE_DOMAIN(Compare,DomainT) domain_compare; 80 typedef icl::left_open_interval<DomainT, Compare> interval_type; 82 static interval_type construct(const domain_type& lo, const domain_type& up) in construct() 87 static domain_type lower(const interval_type& inter_val){ return inter_val.lower(); } in lower() 88 static domain_type upper(const interval_type& inter_val){ return inter_val.upper(); } in upper()
|
D | closed_interval.hpp | 76 struct interval_traits< icl::closed_interval<DomainT, Compare> > struct 78 typedef DomainT domain_type; 79 typedef ICL_COMPARE_DOMAIN(Compare,DomainT) domain_compare; 80 typedef icl::closed_interval<DomainT, Compare> interval_type; 82 static interval_type construct(const domain_type& lo, const domain_type& up) in construct() 87 static domain_type lower(const interval_type& inter_val){ return inter_val.lower(); } in lower() 88 static domain_type upper(const interval_type& inter_val){ return inter_val.upper(); } in upper()
|
D | discrete_interval.hpp | 91 struct interval_traits< icl::discrete_interval<DomainT, Compare> > struct 93 typedef interval_traits type; 94 typedef DomainT domain_type; 95 typedef ICL_COMPARE_DOMAIN(Compare,DomainT) domain_compare; 96 typedef icl::discrete_interval<DomainT, Compare> interval_type; 98 static interval_type construct(const domain_type& lo, const domain_type& up) in construct() 103 static domain_type lower(const interval_type& inter_val){ return inter_val.lower(); } in lower() 104 static domain_type upper(const interval_type& inter_val){ return inter_val.upper(); } in upper()
|
D | continuous_interval.hpp | 92 struct interval_traits< icl::continuous_interval<DomainT, Compare> > struct 94 typedef interval_traits type; 95 typedef DomainT domain_type; 96 typedef ICL_COMPARE_DOMAIN(Compare,DomainT) domain_compare; 97 typedef icl::continuous_interval<DomainT, Compare> interval_type; 99 static interval_type construct(const domain_type& lo, const domain_type& up) in construct() 104 static domain_type lower(const interval_type& inter_val){ return inter_val.lower(); } in lower() 105 static domain_type upper(const interval_type& inter_val){ return inter_val.upper(); } in upper()
|
D | interval_traits.hpp | 29 template<class Type> struct interval_traits struct 31 typedef interval_traits type; 32 typedef typename domain_type_of<Type>::type domain_type;
|
/third_party/boost/boost/polygon/ |
D | interval_traits.hpp | 21 struct interval_traits { struct 22 typedef Interval interval_type; 23 typedef typename interval_type::coordinate_type coordinate_type; 25 static coordinate_type get(const interval_type& interval, direction_1d dir) { in get()
|