SkelCL
SkelCL is a high level multi GPU skeleton library developed at the university of Münster, Germany.
|
This class is a unified wrapper for defining source code in SkelCL. More...
#include <Source.h>
Public Member Functions | |
Source (const char *source) | |
Constructor taking the source code as a string. | |
Source (const std::string &source) | |
Constructor taking the source code as a string. | |
Source (std::istream &is) | |
Constructor taking a istream object. The content the istream is pointing to is read using the stream operator and interpreted to be the source code. This variant can be used to read the source code from a file. | |
Source (std::istream &&is) | |
Constructor taking a istream object. The content the istream is pointing to is read using the stream operator and interpreted to be the source code. This variant can be used to read the source code from a file. | |
~Source () | |
Default destructor. | |
operator std::string () const | |
Conversion operator providing access to the source code as a string. More... | |
void | append (const std::string &source) |
Append the given string to the source code. More... | |
This class is a unified wrapper for defining source code in SkelCL.
An instance of the class can be constructed by providing a string containing the source code or an istream, from which the content it is pointing to is interpreted to be the source code.
void skelcl::Source::append | ( | const std::string & | source | ) |
Append the given string to the source code.
source | The string to be appended to the source code. |
Definition at line 95 of file Source.cpp.
skelcl::Source::operator std::string | ( | ) | const |
Conversion operator providing access to the source code as a string.
Thanks to this operator an instance of this class is implicitly convertible to a string.
Definition at line 90 of file Source.cpp.