Chris@16: /*-----------------------------------------------------------------------------+ Chris@16: Copyright (c) 2010-2010: Joachim Faulhaber Chris@16: +------------------------------------------------------------------------------+ Chris@16: Distributed under the Boost Software License, Version 1.0. Chris@16: (See accompanying file LICENCE.txt or copy at Chris@16: http://www.boost.org/LICENSE_1_0.txt) Chris@16: +-----------------------------------------------------------------------------*/ Chris@16: #ifndef BOOST_ICL_DYNAMIC_INTERVAL_TRAITS_HPP_JOFA_100926 Chris@16: #define BOOST_ICL_DYNAMIC_INTERVAL_TRAITS_HPP_JOFA_100926 Chris@16: Chris@16: namespace boost{ namespace icl Chris@16: { Chris@16: Chris@16: class interval_bounds; Chris@16: template class bounded_value; Chris@16: Chris@16: Chris@16: //------------------------------------------------------------------------------ Chris@16: //- Adapter class Chris@16: //------------------------------------------------------------------------------ Chris@16: template Chris@16: struct dynamic_interval_traits Chris@16: { Chris@16: typedef typename Type::domain_type domain_type; Chris@16: typedef typename Type::domain_compare domain_compare; Chris@16: Chris@16: static Type construct(const domain_type& lo, const domain_type& up, interval_bounds bounds); Chris@16: static Type construct_bounded(const bounded_value& lo, Chris@16: const bounded_value& up); Chris@16: }; Chris@16: Chris@16: Chris@16: }} // namespace boost icl Chris@16: Chris@16: #endif Chris@16: Chris@16: