op_relational_bones.hpp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. // Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
  2. // Copyright 2008-2016 National ICT Australia (NICTA)
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // ------------------------------------------------------------------------
  15. //! \addtogroup op_relational
  16. //! @{
  17. class op_rel_lt_pre
  18. : public traits_op_passthru
  19. {
  20. public:
  21. template<typename T1>
  22. inline static void apply(Mat<uword>& out, const mtOp<uword, T1, op_rel_lt_pre>& X);
  23. template<typename T1>
  24. inline static void apply(Cube<uword>& out, const mtOpCube<uword, T1, op_rel_lt_pre>& X);
  25. };
  26. class op_rel_lt_post
  27. : public traits_op_passthru
  28. {
  29. public:
  30. template<typename T1>
  31. inline static void apply(Mat<uword>& out, const mtOp<uword, T1, op_rel_lt_post>& X);
  32. template<typename T1>
  33. inline static void apply(Cube<uword>& out, const mtOpCube<uword, T1, op_rel_lt_post>& X);
  34. };
  35. class op_rel_gt_pre
  36. : public traits_op_passthru
  37. {
  38. public:
  39. template<typename T1>
  40. inline static void apply(Mat<uword>& out, const mtOp<uword, T1, op_rel_gt_pre>& X);
  41. template<typename T1>
  42. inline static void apply(Cube<uword>& out, const mtOpCube<uword, T1, op_rel_gt_pre>& X);
  43. };
  44. class op_rel_gt_post
  45. : public traits_op_passthru
  46. {
  47. public:
  48. template<typename T1>
  49. inline static void apply(Mat<uword>& out, const mtOp<uword, T1, op_rel_gt_post>& X);
  50. template<typename T1>
  51. inline static void apply(Cube<uword>& out, const mtOpCube<uword, T1, op_rel_gt_post>& X);
  52. };
  53. class op_rel_lteq_pre
  54. : public traits_op_passthru
  55. {
  56. public:
  57. template<typename T1>
  58. inline static void apply(Mat<uword>& out, const mtOp<uword, T1, op_rel_lteq_pre>& X);
  59. template<typename T1>
  60. inline static void apply(Cube<uword>& out, const mtOpCube<uword, T1, op_rel_lteq_pre>& X);
  61. };
  62. class op_rel_lteq_post
  63. : public traits_op_passthru
  64. {
  65. public:
  66. template<typename T1>
  67. inline static void apply(Mat<uword>& out, const mtOp<uword, T1, op_rel_lteq_post>& X);
  68. template<typename T1>
  69. inline static void apply(Cube<uword>& out, const mtOpCube<uword, T1, op_rel_lteq_post>& X);
  70. };
  71. class op_rel_gteq_pre
  72. : public traits_op_passthru
  73. {
  74. public:
  75. template<typename T1>
  76. inline static void apply(Mat<uword>& out, const mtOp<uword, T1, op_rel_gteq_pre>& X);
  77. template<typename T1>
  78. inline static void apply(Cube<uword>& out, const mtOpCube<uword, T1, op_rel_gteq_pre>& X);
  79. };
  80. class op_rel_gteq_post
  81. : public traits_op_passthru
  82. {
  83. public:
  84. template<typename T1>
  85. inline static void apply(Mat<uword>& out, const mtOp<uword, T1, op_rel_gteq_post>& X);
  86. template<typename T1>
  87. inline static void apply(Cube<uword>& out, const mtOpCube<uword, T1, op_rel_gteq_post>& X);
  88. };
  89. class op_rel_eq
  90. : public traits_op_passthru
  91. {
  92. public:
  93. template<typename T1>
  94. inline static void apply(Mat<uword>& out, const mtOp<uword, T1, op_rel_eq>& X);
  95. template<typename T1>
  96. inline static void apply(Cube<uword>& out, const mtOpCube<uword, T1, op_rel_eq>& X);
  97. };
  98. class op_rel_noteq
  99. : public traits_op_passthru
  100. {
  101. public:
  102. template<typename T1>
  103. inline static void apply(Mat<uword>& out, const mtOp<uword, T1, op_rel_noteq>& X);
  104. template<typename T1>
  105. inline static void apply(Cube<uword>& out, const mtOpCube<uword, T1, op_rel_noteq>& X);
  106. };
  107. //! @}