Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:41:38

0001 
0002 #ifndef BOOST_MPL_AUX_OVERLOAD_NAMES_HPP_INCLUDED
0003 #define BOOST_MPL_AUX_OVERLOAD_NAMES_HPP_INCLUDED
0004 
0005 // Copyright Aleksey Gurtovoy 2004
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. 
0008 // (See accompanying file LICENSE_1_0.txt or copy at 
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 //
0011 // See http://www.boost.org/libs/mpl for documentation.
0012 
0013 // $Id$
0014 // $Date$
0015 // $Revision$
0016 
0017 #include <boost/mpl/aux_/ptr_to_ref.hpp>
0018 #include <boost/mpl/aux_/config/operators.hpp>
0019 
0020 #if defined(BOOST_MPL_CFG_USE_OPERATORS_OVERLOADING)
0021 
0022 #   include <boost/mpl/aux_/static_cast.hpp>
0023 
0024 #   define BOOST_MPL_AUX_OVERLOAD_VALUE_BY_KEY  operator/
0025 #   define BOOST_MPL_AUX_OVERLOAD_ITEM_BY_ORDER operator|
0026 #   define BOOST_MPL_AUX_OVERLOAD_ORDER_BY_KEY  operator||
0027 #   define BOOST_MPL_AUX_OVERLOAD_IS_MASKED     operator%
0028 
0029 #   define BOOST_MPL_AUX_OVERLOAD_CALL_VALUE_BY_KEY(T, x)   BOOST_MPL_AUX_PTR_TO_REF(T) / x
0030 #   define BOOST_MPL_AUX_OVERLOAD_CALL_ITEM_BY_ORDER(T, x)  BOOST_MPL_AUX_PTR_TO_REF(T) | x
0031 #   define BOOST_MPL_AUX_OVERLOAD_CALL_ORDER_BY_KEY(T, x)   BOOST_MPL_AUX_PTR_TO_REF(T) || x
0032 #   define BOOST_MPL_AUX_OVERLOAD_CALL_IS_MASKED(T, x)      BOOST_MPL_AUX_PTR_TO_REF(T) % x
0033 
0034 #else
0035 
0036 #   define BOOST_MPL_AUX_OVERLOAD_VALUE_BY_KEY  value_by_key_
0037 #   define BOOST_MPL_AUX_OVERLOAD_ITEM_BY_ORDER item_by_order_
0038 #   define BOOST_MPL_AUX_OVERLOAD_ORDER_BY_KEY  order_by_key_
0039 #   define BOOST_MPL_AUX_OVERLOAD_IS_MASKED     is_masked_
0040 
0041 #   define BOOST_MPL_AUX_OVERLOAD_CALL_VALUE_BY_KEY(T, x)   T::BOOST_MPL_AUX_OVERLOAD_VALUE_BY_KEY( BOOST_MPL_AUX_PTR_TO_REF(T), x )
0042 #   define BOOST_MPL_AUX_OVERLOAD_CALL_ITEM_BY_ORDER(T, x)  T::BOOST_MPL_AUX_OVERLOAD_ITEM_BY_ORDER( BOOST_MPL_AUX_PTR_TO_REF(T), x )
0043 #   define BOOST_MPL_AUX_OVERLOAD_CALL_ORDER_BY_KEY(T, x)   T::BOOST_MPL_AUX_OVERLOAD_ORDER_BY_KEY( BOOST_MPL_AUX_PTR_TO_REF(T), x )
0044 #   define BOOST_MPL_AUX_OVERLOAD_CALL_IS_MASKED(T, x)      T::BOOST_MPL_AUX_OVERLOAD_IS_MASKED( BOOST_MPL_AUX_PTR_TO_REF(T), x )
0045 
0046 #endif
0047 
0048 #endif // BOOST_MPL_AUX_OVERLOAD_NAMES_HPP_INCLUDED