glue_relational_bones.hpp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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 glue_relational
  16. //! @{
  17. class glue_rel_lt
  18. : public traits_glue_or
  19. {
  20. public:
  21. template<typename T1, typename T2>
  22. inline static void apply(Mat <uword>& out, const mtGlue<uword, T1, T2, glue_rel_lt>& X);
  23. template<typename T1, typename T2>
  24. inline static void apply(Cube <uword>& out, const mtGlueCube<uword, T1, T2, glue_rel_lt>& X);
  25. };
  26. class glue_rel_gt
  27. : public traits_glue_or
  28. {
  29. public:
  30. template<typename T1, typename T2>
  31. inline static void apply(Mat <uword>& out, const mtGlue<uword, T1, T2, glue_rel_gt>& X);
  32. template<typename T1, typename T2>
  33. inline static void apply(Cube <uword>& out, const mtGlueCube<uword, T1, T2, glue_rel_gt>& X);
  34. };
  35. class glue_rel_lteq
  36. : public traits_glue_or
  37. {
  38. public:
  39. template<typename T1, typename T2>
  40. inline static void apply(Mat <uword>& out, const mtGlue<uword, T1, T2, glue_rel_lteq>& X);
  41. template<typename T1, typename T2>
  42. inline static void apply(Cube <uword>& out, const mtGlueCube<uword, T1, T2, glue_rel_lteq>& X);
  43. };
  44. class glue_rel_gteq
  45. : public traits_glue_or
  46. {
  47. public:
  48. template<typename T1, typename T2>
  49. inline static void apply(Mat <uword>& out, const mtGlue<uword, T1, T2, glue_rel_gteq>& X);
  50. template<typename T1, typename T2>
  51. inline static void apply(Cube <uword>& out, const mtGlueCube<uword, T1, T2, glue_rel_gteq>& X);
  52. };
  53. class glue_rel_eq
  54. : public traits_glue_or
  55. {
  56. public:
  57. template<typename T1, typename T2>
  58. inline static void apply(Mat <uword>& out, const mtGlue<uword, T1, T2, glue_rel_eq>& X);
  59. template<typename T1, typename T2>
  60. inline static void apply(Cube <uword>& out, const mtGlueCube<uword, T1, T2, glue_rel_eq>& X);
  61. };
  62. class glue_rel_noteq
  63. : public traits_glue_or
  64. {
  65. public:
  66. template<typename T1, typename T2>
  67. inline static void apply(Mat <uword>& out, const mtGlue<uword, T1, T2, glue_rel_noteq>& X);
  68. template<typename T1, typename T2>
  69. inline static void apply(Cube <uword>& out, const mtGlueCube<uword, T1, T2, glue_rel_noteq>& X);
  70. };
  71. class glue_rel_and
  72. : public traits_glue_or
  73. {
  74. public:
  75. template<typename T1, typename T2>
  76. inline static void apply(Mat <uword>& out, const mtGlue<uword, T1, T2, glue_rel_and>& X);
  77. template<typename T1, typename T2>
  78. inline static void apply(Cube <uword>& out, const mtGlueCube<uword, T1, T2, glue_rel_and>& X);
  79. };
  80. class glue_rel_or
  81. : public traits_glue_or
  82. {
  83. public:
  84. template<typename T1, typename T2>
  85. inline static void apply(Mat <uword>& out, const mtGlue<uword, T1, T2, glue_rel_or>& X);
  86. template<typename T1, typename T2>
  87. inline static void apply(Cube <uword>& out, const mtGlueCube<uword, T1, T2, glue_rel_or>& X);
  88. };
  89. //! @}