Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // -- operator_actions.hpp - Boost Lambda Library ----------------------
3 // Copyright (C) 1999, 2000 Jaakko Järvi (jaakko.jarvi@cs.utu.fi)
5 // Distributed under the Boost Software License, Version 1.0. (See
6 // accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 // For more information, see http://lambda.cs.utu.fi
11 #ifndef BOOST_LAMBDA_OPERATOR_ACTIONS_HPP
12 #define BOOST_LAMBDA_OPERATOR_ACTIONS_HPP
18 // -- artihmetic ----------------------
21 class minus_action {};
22 class multiply_action {};
23 class divide_action {};
24 class remainder_action {};
26 // -- bitwise -------------------
28 class leftshift_action {};
29 class rightshift_action {};
33 // -- bitwise/logical -------------------
39 // -- relational -------------------------
42 class greater_action {};
43 class lessorequal_action {};
44 class greaterorequal_action {};
45 class equal_action {};
46 class notequal_action {};
48 // -- increment/decrement ------------------------------
50 class increment_action {};
51 class decrement_action {};
53 // -- void return ------------------------------
55 // -- other ------------------------------
57 class addressof_action {};
58 // class comma_action {}; // defined in actions.hpp
59 class contentsof_action {};
60 // class member_pointer_action {}; (defined in member_ptr.hpp)
63 // -- actioun group templates --------------------
65 template <class Action> class arithmetic_action;
66 template <class Action> class bitwise_action;
67 template <class Action> class logical_action;
68 template <class Action> class relational_action;
69 template <class Action> class arithmetic_assignment_action;
70 template <class Action> class bitwise_assignment_action;
71 template <class Action> class unary_arithmetic_action;
72 template <class Action> class pre_increment_decrement_action;
73 template <class Action> class post_increment_decrement_action;
75 // ---------------------------------------------------------
77 // actions, for which the existence of protect is checked in return type
80 template <class Act> struct is_protectable<arithmetic_action<Act> > {
81 BOOST_STATIC_CONSTANT(bool, value = true);
83 template <class Act> struct is_protectable<bitwise_action<Act> > {
84 BOOST_STATIC_CONSTANT(bool, value = true);
86 template <class Act> struct is_protectable<logical_action<Act> > {
87 BOOST_STATIC_CONSTANT(bool, value = true);
89 template <class Act> struct is_protectable<relational_action<Act> > {
90 BOOST_STATIC_CONSTANT(bool, value = true);
93 struct is_protectable<arithmetic_assignment_action<Act> > {
94 BOOST_STATIC_CONSTANT(bool, value = true);
96 template <class Act> struct is_protectable<bitwise_assignment_action<Act> > {
97 BOOST_STATIC_CONSTANT(bool, value = true);
99 template <class Act> struct is_protectable<unary_arithmetic_action<Act> > {
100 BOOST_STATIC_CONSTANT(bool, value = true);
103 struct is_protectable<pre_increment_decrement_action<Act> > {
104 BOOST_STATIC_CONSTANT(bool, value = true);
106 template <class Act> struct
107 is_protectable<post_increment_decrement_action<Act> > {
108 BOOST_STATIC_CONSTANT(bool, value = true);
111 template <> struct is_protectable<other_action<addressof_action> > {
112 BOOST_STATIC_CONSTANT(bool, value = true);
114 template <> struct is_protectable<other_action<contentsof_action> > {
115 BOOST_STATIC_CONSTANT(bool, value = true);
118 template<> struct is_protectable<other_action<subscript_action> > {
119 BOOST_STATIC_CONSTANT(bool, value = true);
121 template<> struct is_protectable<other_action<assignment_action> > {
122 BOOST_STATIC_CONSTANT(bool, value = true);
125 // NOTE: comma action is also protectable, but the specialization is
129 } // namespace lambda