Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/icl/dynamic_interval_traits.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*-----------------------------------------------------------------------------+    
0002 Copyright (c) 2010-2010: Joachim Faulhaber
0003 +------------------------------------------------------------------------------+
0004    Distributed under the Boost Software License, Version 1.0.
0005       (See accompanying file LICENCE.txt or copy at
0006            http://www.boost.org/LICENSE_1_0.txt)
0007 +-----------------------------------------------------------------------------*/
0008 #ifndef BOOST_ICL_DYNAMIC_INTERVAL_TRAITS_HPP_JOFA_100926
0009 #define BOOST_ICL_DYNAMIC_INTERVAL_TRAITS_HPP_JOFA_100926
0010 
0011 namespace boost{ namespace icl
0012 {
0013 
0014 class interval_bounds;
0015 template<class DomainT> class bounded_value;
0016 
0017 
0018 //------------------------------------------------------------------------------
0019 //- Adapter class
0020 //------------------------------------------------------------------------------
0021 template<class Type>
0022 struct dynamic_interval_traits
0023 {
0024     typedef typename Type::domain_type    domain_type;
0025     typedef typename Type::domain_compare domain_compare;
0026 
0027     static Type construct(const domain_type& lo, const domain_type& up, interval_bounds bounds);
0028     static Type construct_bounded(const bounded_value<domain_type>& lo, 
0029                                   const bounded_value<domain_type>& up);
0030 };
0031 
0032 
0033 }} // namespace boost icl
0034 
0035 #endif
0036 
0037