ShAlgebra.hpp

00001 // Sh: A GPU metaprogramming language.
00002 //
00003 // Copyright 2003-2006 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 #ifndef SHALGEBRA_HPP
00021 #define SHALGEBRA_HPP
00022 
00023 #include <string>
00024 #include "ShDllExport.hpp"
00025 #include "ShProgram.hpp"
00026 #include "ShSyntax.hpp"
00027 #include "ShAttrib.hpp"
00028 
00029 namespace SH {
00030 
00037 SH_DLLEXPORT
00038 ShProgram connect(ShProgram a, ShProgram b);
00039 
00045 SH_DLLEXPORT
00046 ShProgram combine(ShProgram a, ShProgram b);
00047 
00061 SH_DLLEXPORT
00062 ShProgram namedCombine(ShProgram a, ShProgram b);
00063 
00073 SH_DLLEXPORT
00074 ShProgram namedConnect(ShProgram a, ShProgram b, bool keepExtra = false );
00075 
00078 SH_DLLEXPORT
00079 ShProgram renameInput(ShProgram a, const std::string& oldName, const std::string& newName);
00080 
00083 SH_DLLEXPORT
00084 ShProgram renameOutput(ShProgram a, const std::string& oldName, const std::string& newName);
00085 
00090 SH_DLLEXPORT
00091 ShProgram namedAlign(ShProgram a, ShProgram b);
00092 
00097 SH_DLLEXPORT
00098 ShProgram replaceVariable(ShProgram a, const ShVariable &var); 
00099 
00102 SH_DLLEXPORT
00103 ShProgram operator&(ShProgram a, ShProgram b);
00104 
00107 SH_DLLEXPORT
00108 ShProgram operator<<(ShProgram a, ShProgram b);
00109 
00112 SH_DLLEXPORT
00113 ShProgram operator>>(ShProgram p, const ShVariable &var); 
00114 
00120 SH_DLLEXPORT
00121 ShProgram operator<<(ShProgram a, const ShVariable& var); 
00122 
00123 }
00124 
00125 #endif

Generated on Thu Feb 16 14:51:29 2006 for Sh by  doxygen 1.4.6