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

ShAlgebra.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 SHALGEBRA_HPP
00025 #define SHALGEBRA_HPP
00026 
00027 #include <string>
00028 #include "ShDllExport.hpp"
00029 #include "ShProgram.hpp"
00030 #include "ShSyntax.hpp"
00031 #include "ShAttrib.hpp"
00032 
00033 namespace SH {
00034 
00041 SH_DLLEXPORT
00042 ShProgram connect(ShProgram a, ShProgram b);
00043 
00049 SH_DLLEXPORT
00050 ShProgram combine(ShProgram a, ShProgram b);
00051 
00065 SH_DLLEXPORT
00066 ShProgram namedCombine(ShProgram a, ShProgram b);
00067 
00077 SH_DLLEXPORT
00078 ShProgram namedConnect(ShProgram a, ShProgram b, bool keepExtra = false );
00079 
00082 SH_DLLEXPORT
00083 ShProgram renameInput(ShProgram a, const std::string& oldName, const std::string& newName);
00084 
00087 SH_DLLEXPORT
00088 ShProgram renameOutput(ShProgram a, const std::string& oldName, const std::string& newName);
00089 
00094 SH_DLLEXPORT
00095 ShProgram namedAlign(ShProgram a, ShProgram b);
00096 
00101 SH_DLLEXPORT
00102 ShProgram replaceVariable(ShProgram a, const ShVariable &var); 
00103 
00106 SH_DLLEXPORT
00107 ShProgram operator&(ShProgram a, ShProgram b);
00108 
00111 SH_DLLEXPORT
00112 ShProgram operator<<(ShProgram a, ShProgram b);
00113 
00116 SH_DLLEXPORT
00117 ShProgram operator>>(ShProgram p, const ShVariable &var); 
00118 
00124 SH_DLLEXPORT
00125 ShProgram operator<<(ShProgram a, const ShVariable& var); 
00126 
00127 }
00128 
00129 #endif

Generated on Thu Apr 21 17:32:45 2005 for Sh by  doxygen 1.4.2