Chris@16
|
1
|
Chris@16
|
2 #ifndef BOOST_MPL_AUX_OVERLOAD_NAMES_HPP_INCLUDED
|
Chris@16
|
3 #define BOOST_MPL_AUX_OVERLOAD_NAMES_HPP_INCLUDED
|
Chris@16
|
4
|
Chris@16
|
5 // Copyright Aleksey Gurtovoy 2004
|
Chris@16
|
6 //
|
Chris@16
|
7 // Distributed under the Boost Software License, Version 1.0.
|
Chris@16
|
8 // (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
9 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
10 //
|
Chris@16
|
11 // See http://www.boost.org/libs/mpl for documentation.
|
Chris@16
|
12
|
Chris@101
|
13 // $Id$
|
Chris@101
|
14 // $Date$
|
Chris@101
|
15 // $Revision$
|
Chris@16
|
16
|
Chris@16
|
17 #include <boost/mpl/aux_/ptr_to_ref.hpp>
|
Chris@16
|
18 #include <boost/mpl/aux_/config/operators.hpp>
|
Chris@16
|
19
|
Chris@16
|
20 #if defined(BOOST_MPL_CFG_USE_OPERATORS_OVERLOADING)
|
Chris@16
|
21
|
Chris@16
|
22 # include <boost/mpl/aux_/static_cast.hpp>
|
Chris@16
|
23
|
Chris@16
|
24 # define BOOST_MPL_AUX_OVERLOAD_VALUE_BY_KEY operator/
|
Chris@16
|
25 # define BOOST_MPL_AUX_OVERLOAD_ITEM_BY_ORDER operator|
|
Chris@16
|
26 # define BOOST_MPL_AUX_OVERLOAD_ORDER_BY_KEY operator||
|
Chris@16
|
27 # define BOOST_MPL_AUX_OVERLOAD_IS_MASKED operator%
|
Chris@16
|
28
|
Chris@16
|
29 # define BOOST_MPL_AUX_OVERLOAD_CALL_VALUE_BY_KEY(T, x) BOOST_MPL_AUX_PTR_TO_REF(T) / x
|
Chris@16
|
30 # define BOOST_MPL_AUX_OVERLOAD_CALL_ITEM_BY_ORDER(T, x) BOOST_MPL_AUX_PTR_TO_REF(T) | x
|
Chris@16
|
31 # define BOOST_MPL_AUX_OVERLOAD_CALL_ORDER_BY_KEY(T, x) BOOST_MPL_AUX_PTR_TO_REF(T) || x
|
Chris@16
|
32 # define BOOST_MPL_AUX_OVERLOAD_CALL_IS_MASKED(T, x) BOOST_MPL_AUX_PTR_TO_REF(T) % x
|
Chris@16
|
33
|
Chris@16
|
34 #else
|
Chris@16
|
35
|
Chris@16
|
36 # define BOOST_MPL_AUX_OVERLOAD_VALUE_BY_KEY value_by_key_
|
Chris@16
|
37 # define BOOST_MPL_AUX_OVERLOAD_ITEM_BY_ORDER item_by_order_
|
Chris@16
|
38 # define BOOST_MPL_AUX_OVERLOAD_ORDER_BY_KEY order_by_key_
|
Chris@16
|
39 # define BOOST_MPL_AUX_OVERLOAD_IS_MASKED is_masked_
|
Chris@16
|
40
|
Chris@16
|
41 # 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 )
|
Chris@16
|
42 # 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 )
|
Chris@16
|
43 # 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 )
|
Chris@16
|
44 # 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 )
|
Chris@16
|
45
|
Chris@16
|
46 #endif
|
Chris@16
|
47
|
Chris@16
|
48 #endif // BOOST_MPL_AUX_OVERLOAD_NAMES_HPP_INCLUDED
|