dynamic_interval_traits.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*-----------------------------------------------------------------------------+
  2. Copyright (c) 2010-2010: Joachim Faulhaber
  3. +------------------------------------------------------------------------------+
  4. Distributed under the Boost Software License, Version 1.0.
  5. (See accompanying file LICENCE.txt or copy at
  6. http://www.boost.org/LICENSE_1_0.txt)
  7. +-----------------------------------------------------------------------------*/
  8. #ifndef BOOST_ICL_DYNAMIC_INTERVAL_TRAITS_HPP_JOFA_100926
  9. #define BOOST_ICL_DYNAMIC_INTERVAL_TRAITS_HPP_JOFA_100926
  10. namespace boost{ namespace icl
  11. {
  12. class interval_bounds;
  13. template<class DomainT> class bounded_value;
  14. //------------------------------------------------------------------------------
  15. //- Adapter class
  16. //------------------------------------------------------------------------------
  17. template<class Type>
  18. struct dynamic_interval_traits
  19. {
  20. typedef typename Type::domain_type domain_type;
  21. typedef typename Type::domain_compare domain_compare;
  22. static Type construct(const domain_type& lo, const domain_type& up, interval_bounds bounds);
  23. static Type construct_bounded(const bounded_value<domain_type>& lo,
  24. const bounded_value<domain_type>& up);
  25. };
  26. }} // namespace boost icl
  27. #endif