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 library is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License, or (at your option) any later version.
00009 //
00010 // This library is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with this library; if not, write to the Free Software
00017 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
00018 // MA  02110-1301, USA
00020 #include "ShLib.hpp" // ShLibBoolean needs to be included from within ShLib
00021 
00022 #ifndef SHLIBBOOLEAN_HPP
00023 #define SHLIBBOOLEAN_HPP
00024 
00025 #include "ShGeneric.hpp"
00026 
00027 #ifndef WIN32 
00028 namespace SH {
00029 
00035 
00036 template<int N, typename T1, typename T2>
00037 ShGeneric<N, CT1T2>
00038 operator<(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00039 template<int N, typename T1, typename T2>
00040 ShGeneric<N, CT1T2>
00041 operator<(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00042 template<int N, typename T1, typename T2>
00043 ShGeneric<N, CT1T2>
00044 operator<(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00045 template<typename T1, typename T2>
00046 ShGeneric<1, CT1T2>
00047 operator<(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00048 SH_SHLIB_CONST_SCALAR_OP_DECL(operator<);
00049 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator<);
00050 
00052 template<int N, typename T1, typename T2>
00053 ShGeneric<N, CT1T2>
00054 operator<=(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00055 template<int N, typename T1, typename T2>
00056 ShGeneric<N, CT1T2>
00057 operator<=(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00058 template<int N, typename T1, typename T2>
00059 ShGeneric<N, CT1T2>
00060 operator<=(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00061 template<typename T1, typename T2>
00062 ShGeneric<1, CT1T2>
00063 operator<=(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00064 SH_SHLIB_CONST_SCALAR_OP_DECL(operator<=);
00065 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator<=);
00066 
00068 template<int N, typename T1, typename T2>
00069 ShGeneric<N, CT1T2>
00070 operator>(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00071 template<int N, typename T1, typename T2>
00072 ShGeneric<N, CT1T2>
00073 operator>(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00074 template<int N, typename T1, typename T2>
00075 ShGeneric<N, CT1T2>
00076 operator>(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00077 template<typename T1, typename T2>
00078 ShGeneric<1, CT1T2>
00079 operator>(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00080 SH_SHLIB_CONST_SCALAR_OP_DECL(operator>);
00081 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator>);
00082 
00084 template<int N, typename T1, typename T2>
00085 ShGeneric<N, CT1T2>
00086 operator>=(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00087 template<int N, typename T1, typename T2>
00088 ShGeneric<N, CT1T2>
00089 operator>=(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00090 template<int N, typename T1, typename T2>
00091 ShGeneric<N, CT1T2>
00092 operator>=(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00093 template<typename T1, typename T2>
00094 ShGeneric<1, CT1T2>
00095 operator>=(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00096 SH_SHLIB_CONST_SCALAR_OP_DECL(operator>=);
00097 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator>=);
00098 
00100 template<int N, typename T1, typename T2>
00101 ShGeneric<N, CT1T2>
00102 operator==(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00103 template<int N, typename T1, typename T2>
00104 ShGeneric<N, CT1T2>
00105 operator==(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00106 template<int N, typename T1, typename T2>
00107 ShGeneric<N, CT1T2>
00108 operator==(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00109 template<typename T1, typename T2>
00110 ShGeneric<1, CT1T2>
00111 operator==(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00112 SH_SHLIB_CONST_SCALAR_OP_DECL(operator==);
00113 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator==);
00114 
00116 template<int N, typename T1, typename T2>
00117 ShGeneric<N, CT1T2>
00118 operator!=(const ShGeneric<N, T1>& left, const ShGeneric<N, T2>& right);
00119 template<int N, typename T1, typename T2>
00120 ShGeneric<N, CT1T2>
00121 operator!=(const ShGeneric<N, T1>& left, const ShGeneric<1, T2>& right);
00122 template<int N, typename T1, typename T2>
00123 ShGeneric<N, CT1T2>
00124 operator!=(const ShGeneric<1, T1>& left, const ShGeneric<N, T2>& right);
00125 template<typename T1, typename T2>
00126 ShGeneric<1, CT1T2>
00127 operator!=(const ShGeneric<1, T1>& left, const ShGeneric<1, T2>& right);
00128 SH_SHLIB_CONST_SCALAR_OP_DECL(operator!=);
00129 SH_SHLIB_CONST_N_OP_BOTH_DECL(operator!=);
00130 
00142 template<int N, typename T1, typename T2, typename T3>
00143 ShGeneric<N, CT1T2T3> 
00144 cond(const ShGeneric<N, T1>& condition, const ShGeneric<N, T2>& left,
00145      const ShGeneric<N, T3>& right);
00146 template<int N, typename T1, typename T2, typename T3>
00147 ShGeneric<N, CT1T2T3> 
00148 cond(const ShGeneric<1, T1>& condition, const ShGeneric<N, T2>& left,
00149      const ShGeneric<N, T3>& right);
00150 template<typename T1, typename T2, typename T3>
00151 ShGeneric<1, CT1T2T3> 
00152 cond(const ShGeneric<1, T1>& condition, const ShGeneric<1, T2>& left,
00153      const ShGeneric<1, T3>& right);
00154 template<int N, typename T1, typename T2>
00155 ShGeneric<N, CT1T2> 
00156 cond(const CT1T2& condition, const ShGeneric<N, T1>& left, 
00157      const ShGeneric<N, T2>& right);
00158 
00160 template<int N, typename T>
00161 ShGeneric<N, T> operator!(const ShGeneric<N, T>& a);
00162 
00164 template<int N, typename T1, typename T2>
00165 ShGeneric<N, CT1T2> operator&&(const ShGeneric<N, T1>& a, const ShGeneric<N, T2>& b);
00166 
00168 template<int N, typename T1, typename T2>
00169 ShGeneric<N, CT1T2> operator||(const ShGeneric<N, T1>& a, const ShGeneric<N, T2>& b);
00170 
00172 template<int N, typename T>
00173 ShGeneric<1, T> any(const ShGeneric<N, T>& a);
00174 
00176 template<int N, typename T>
00177 ShGeneric<1, T> all(const ShGeneric<N, T>& a);
00178 
00181 }
00182 #endif
00183 
00184 #include "ShLibBooleanImpl.hpp"
00185 
00186 #endif

Generated on Thu Jul 28 17:33:03 2005 for Sh by  doxygen 1.4.3-20050530