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 2003-2005 Serious Hack Inc.
00004 // 
00005 // This software is provided 'as-is', without any express or implied
00006 // warranty. In no event will the authors be held liable for any damages
00007 // arising from the use of this software.
00008 // 
00009 // Permission is granted to anyone to use this software for any purpose,
00010 // including commercial applications, and to alter it and redistribute it
00011 // freely, subject to the following restrictions:
00012 // 
00013 // 1. The origin of this software must not be misrepresented; you must
00014 // not claim that you wrote the original software. If you use this
00015 // software in a product, an acknowledgment in the product documentation
00016 // would be appreciated but is not required.
00017 // 
00018 // 2. Altered source versions must be plainly marked as such, and must
00019 // not be misrepresented as being the original software.
00020 // 
00021 // 3. This notice may not be removed or altered from any source
00022 // distribution.
00024 #ifndef SHLIBBOOLEAN_HPP
00025 #define SHLIBBOOLEAN_HPP
00026 
00027 #include "ShGeneric.hpp"
00028 #include "ShLib.hpp"
00029 
00030 #ifndef WIN32 
00031 namespace SH {
00032 
00038 
00039 template<int N, typename T1, typename T2>
00040 ShGeneric<N, CT1T2>
00041 operator<(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00042 template<int N, typename T1, typename T2>
00043 ShGeneric<N, CT1T2>
00044 operator<(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00045 template<int N, typename T1, typename T2>
00046 ShGeneric<N, CT1T2>
00047 operator<(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00048 template<typename T1, typename T2>
00049 ShGeneric<1, CT1T2>
00050 operator<(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00051 SH_SHLIB_CONST_SCALAR_OP_DECL(operator<);
00052 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator<);
00053 
00055 template<int N, typename T1, typename T2>
00056 ShGeneric<N, CT1T2>
00057 operator<=(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00058 template<int N, typename T1, typename T2>
00059 ShGeneric<N, CT1T2>
00060 operator<=(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00061 template<int N, typename T1, typename T2>
00062 ShGeneric<N, CT1T2>
00063 operator<=(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00064 template<typename T1, typename T2>
00065 ShGeneric<1, CT1T2>
00066 operator<=(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00067 SH_SHLIB_CONST_SCALAR_OP_DECL(operator<=);
00068 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator<=);
00069 
00071 template<int N, typename T1, typename T2>
00072 ShGeneric<N, CT1T2>
00073 operator>(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00074 template<int N, typename T1, typename T2>
00075 ShGeneric<N, CT1T2>
00076 operator>(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00077 template<int N, typename T1, typename T2>
00078 ShGeneric<N, CT1T2>
00079 operator>(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00080 template<typename T1, typename T2>
00081 ShGeneric<1, CT1T2>
00082 operator>(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00083 SH_SHLIB_CONST_SCALAR_OP_DECL(operator>);
00084 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator>);
00085 
00087 template<int N, typename T1, typename T2>
00088 ShGeneric<N, CT1T2>
00089 operator>=(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00090 template<int N, typename T1, typename T2>
00091 ShGeneric<N, CT1T2>
00092 operator>=(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00093 template<int N, typename T1, typename T2>
00094 ShGeneric<N, CT1T2>
00095 operator>=(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00096 template<typename T1, typename T2>
00097 ShGeneric<1, CT1T2>
00098 operator>=(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00099 SH_SHLIB_CONST_SCALAR_OP_DECL(operator>=);
00100 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator>=);
00101 
00103 template<int N, typename T1, typename T2>
00104 ShGeneric<N, CT1T2>
00105 operator==(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00106 template<int N, typename T1, typename T2>
00107 ShGeneric<N, CT1T2>
00108 operator==(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00109 template<int N, typename T1, typename T2>
00110 ShGeneric<N, CT1T2>
00111 operator==(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00112 template<typename T1, typename T2>
00113 ShGeneric<1, CT1T2>
00114 operator==(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00115 SH_SHLIB_CONST_SCALAR_OP_DECL(operator==);
00116 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator==);
00117 
00119 template<int N, typename T1, typename T2>
00120 ShGeneric<N, CT1T2>
00121 operator!=(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00122 template<int N, typename T1, typename T2>
00123 ShGeneric<N, CT1T2>
00124 operator!=(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00125 template<int N, typename T1, typename T2>
00126 ShGeneric<N, CT1T2>
00127 operator!=(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00128 template<typename T1, typename T2>
00129 ShGeneric<1, CT1T2>
00130 operator!=(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00131 SH_SHLIB_CONST_SCALAR_OP_DECL(operator!=);
00132 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator!=);
00133 
00145 template<int N, typename T1, typename T2, typename T3>
00146 ShGeneric<N, CT1T2T3> 
00147 cond(const ShGeneric<N, T1>& condition, const ShGeneric<N, T2>& left,
00148                      const ShGeneric<N, T3>& right);
00149 template<int N, typename T1, typename T2, typename T3>
00150 ShGeneric<N, CT1T2T3> 
00151 cond(const ShGeneric<1, T1>& condition, const ShGeneric<N, T2>& left,
00152                      const ShGeneric<N, T3>& right);
00153 template<int N, typename T1, typename T2, typename T3>
00154 ShGeneric<N, CT1T2T3> 
00155 cond(const ShGeneric<1, T1>& condition, const ShGeneric<1, T2>& left,
00156                      const ShGeneric<1, T3>& right);
00157 
00159 template<int N, typename T>
00160 ShGeneric<N, T> operator!(const ShGeneric<N, T>& a);
00161 
00163 template<int N, typename T1, typename T2>
00164 ShGeneric<N, CT1T2> operator&&(const ShGeneric<N, T1>& a, const ShGeneric<N, T2>& b);
00165 
00167 template<int N, typename T1, typename T2>
00168 ShGeneric<N, CT1T2> operator||(const ShGeneric<N, T1>& a, const ShGeneric<N, T2>& b);
00169 
00171 template<int N, typename T>
00172 ShGeneric<1, T> any(const ShGeneric<N, T>& a);
00173 
00175 template<int N, typename T>
00176 ShGeneric<1, T> all(const ShGeneric<N, T>& a);
00177 
00180 }
00181 #endif
00182 
00183 #include "ShLibBooleanImpl.hpp"
00184 
00185 #endif

Generated on Wed Jun 15 18:12:40 2005 for Sh by  doxygen 1.4.3-20050530