operator_id.hpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Copyright David Abrahams 2002.
  2. // Distributed under the Boost Software License, Version 1.0. (See
  3. // accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef OPERATOR_ID_DWA2002531_HPP
  6. # define OPERATOR_ID_DWA2002531_HPP
  7. namespace boost { namespace python { namespace detail {
  8. enum operator_id
  9. {
  10. op_add,
  11. op_sub,
  12. op_mul,
  13. op_div,
  14. op_mod,
  15. op_divmod,
  16. op_pow,
  17. op_lshift,
  18. op_rshift,
  19. op_and,
  20. op_xor,
  21. op_or,
  22. op_neg,
  23. op_pos,
  24. op_abs,
  25. op_invert,
  26. op_int,
  27. op_long,
  28. op_float,
  29. op_str,
  30. op_cmp,
  31. op_gt,
  32. op_ge,
  33. op_lt,
  34. op_le,
  35. op_eq,
  36. op_ne,
  37. op_iadd,
  38. op_isub,
  39. op_imul,
  40. op_idiv,
  41. op_imod,
  42. op_ilshift,
  43. op_irshift,
  44. op_iand,
  45. op_ixor,
  46. op_ior,
  47. op_complex,
  48. #if PY_VERSION_HEX >= 0x03000000
  49. op_bool,
  50. #else
  51. op_nonzero,
  52. #endif
  53. op_repr
  54. #if PY_VERSION_HEX >= 0x03000000
  55. ,op_truediv
  56. #endif
  57. };
  58. }}} // namespace boost::python::detail
  59. #endif // OPERATOR_ID_DWA2002531_HPP