Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ShLibBoolean.hpp

00001 // Sh: A GPU metaprogramming language.
00002 //
00003 // Copyright (c) 2003 University of Waterloo Computer Graphics Laboratory
00004 // Project administrator: Michael D. McCool
00005 // Authors: Zheng Qin, Stefanus Du Toit, Kevin Moule, Tiberiu S. Popa,
00006 //          Michael D. McCool
00007 // 
00008 // This software is provided 'as-is', without any express or implied
00009 // warranty. In no event will the authors be held liable for any damages
00010 // arising from the use of this software.
00011 // 
00012 // Permission is granted to anyone to use this software for any purpose,
00013 // including commercial applications, and to alter it and redistribute it
00014 // freely, subject to the following restrictions:
00015 // 
00016 // 1. The origin of this software must not be misrepresented; you must
00017 // not claim that you wrote the original software. If you use this
00018 // software in a product, an acknowledgment in the product documentation
00019 // would be appreciated but is not required.
00020 // 
00021 // 2. Altered source versions must be plainly marked as such, and must
00022 // not be misrepresented as being the original software.
00023 // 
00024 // 3. This notice may not be removed or altered from any source
00025 // distribution.
00027 #ifndef SHLIBBOOLEAN_HPP
00028 #define SHLIBBOOLEAN_HPP
00029 
00030 #include "ShGeneric.hpp"
00031 #include "ShLib.hpp"
00032 
00033 #ifndef WIN32 
00034 namespace SH {
00035 
00041 
00042 template<int N, typename T1, typename T2>
00043 ShGeneric<N, CT1T2>
00044 operator<(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00045 template<int N, typename T1, typename T2>
00046 ShGeneric<N, CT1T2>
00047 operator<(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00048 template<int N, typename T1, typename T2>
00049 ShGeneric<N, CT1T2>
00050 operator<(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00051 template<typename T1, typename T2>
00052 ShGeneric<1, CT1T2>
00053 operator<(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00054 SH_SHLIB_CONST_SCALAR_OP_DECL(operator<);
00055 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator<);
00056 
00058 template<int N, typename T1, typename T2>
00059 ShGeneric<N, CT1T2>
00060 operator<=(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00061 template<int N, typename T1, typename T2>
00062 ShGeneric<N, CT1T2>
00063 operator<=(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00064 template<int N, typename T1, typename T2>
00065 ShGeneric<N, CT1T2>
00066 operator<=(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00067 template<typename T1, typename T2>
00068 ShGeneric<1, CT1T2>
00069 operator<=(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00070 SH_SHLIB_CONST_SCALAR_OP_DECL(operator<=);
00071 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator<=);
00072 
00074 template<int N, typename T1, typename T2>
00075 ShGeneric<N, CT1T2>
00076 operator>(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00077 template<int N, typename T1, typename T2>
00078 ShGeneric<N, CT1T2>
00079 operator>(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00080 template<int N, typename T1, typename T2>
00081 ShGeneric<N, CT1T2>
00082 operator>(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00083 template<typename T1, typename T2>
00084 ShGeneric<1, CT1T2>
00085 operator>(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00086 SH_SHLIB_CONST_SCALAR_OP_DECL(operator>);
00087 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator>);
00088 
00090 template<int N, typename T1, typename T2>
00091 ShGeneric<N, CT1T2>
00092 operator>=(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00093 template<int N, typename T1, typename T2>
00094 ShGeneric<N, CT1T2>
00095 operator>=(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00096 template<int N, typename T1, typename T2>
00097 ShGeneric<N, CT1T2>
00098 operator>=(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00099 template<typename T1, typename T2>
00100 ShGeneric<1, CT1T2>
00101 operator>=(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00102 SH_SHLIB_CONST_SCALAR_OP_DECL(operator>=);
00103 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator>=);
00104 
00106 template<int N, typename T1, typename T2>
00107 ShGeneric<N, CT1T2>
00108 operator==(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00109 template<int N, typename T1, typename T2>
00110 ShGeneric<N, CT1T2>
00111 operator==(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00112 template<int N, typename T1, typename T2>
00113 ShGeneric<N, CT1T2>
00114 operator==(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00115 template<typename T1, typename T2>
00116 ShGeneric<1, CT1T2>
00117 operator==(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00118 SH_SHLIB_CONST_SCALAR_OP_DECL(operator==);
00119 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator==);
00120 
00122 template<int N, typename T1, typename T2>
00123 ShGeneric<N, CT1T2>
00124 operator!=(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00125 template<int N, typename T1, typename T2>
00126 ShGeneric<N, CT1T2>
00127 operator!=(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00128 template<int N, typename T1, typename T2>
00129 ShGeneric<N, CT1T2>
00130 operator!=(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00131 template<typename T1, typename T2>
00132 ShGeneric<1, CT1T2>
00133 operator!=(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00134 SH_SHLIB_CONST_SCALAR_OP_DECL(operator!=);
00135 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator!=);
00136 
00148 template<int N, typename T1, typename T2, typename T3>
00149 ShGeneric<N, CT1T2T3> 
00150 cond(const ShGeneric<N, T1>& condition, const ShGeneric<N, T2>& left,
00151                      const ShGeneric<N, T3>& right);
00152 template<int N, typename T1, typename T2, typename T3>
00153 ShGeneric<N, CT1T2T3> 
00154 cond(const ShGeneric<1, T1>& condition, const ShGeneric<N, T2>& left,
00155                      const ShGeneric<N, T3>& right);
00156 template<int N, typename T1, typename T2, typename T3>
00157 ShGeneric<N, CT1T2T3> 
00158 cond(const ShGeneric<1, T1>& condition, const ShGeneric<1, T2>& left,
00159                      const ShGeneric<1, T3>& right);
00160 
00162 template<int N, typename T>
00163 ShGeneric<N, T> operator!(const ShGeneric<N, T>& a);
00164 
00166 template<int N, typename T1, typename T2>
00167 ShGeneric<N, CT1T2> operator&&(const ShGeneric<N, T1>& a, const ShGeneric<N, T2>& b);
00168 
00170 template<int N, typename T1, typename T2>
00171 ShGeneric<N, CT1T2> operator||(const ShGeneric<N, T1>& a, const ShGeneric<N, T2>& b);
00172 
00174 template<int N, typename T>
00175 ShGeneric<1, T> any(const ShGeneric<N, T>& a);
00176 
00178 template<int N, typename T>
00179 ShGeneric<1, T> all(const ShGeneric<N, T>& a);
00180 
00183 }
00184 #endif
00185 
00186 #include "ShLibBooleanImpl.hpp"
00187 
00188 #endif

Generated on Mon Jan 24 18:36:32 2005 for Sh by  doxygen 1.4.1