SkelCL
SkelCL is a high level multi GPU skeleton library developed at the university of M√ľnster, Germany.
 All Classes Namespaces Files Functions Variables Typedefs Groups
Public Member Functions | List of all members
skelcl::Source Class Reference

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...
 

Detailed Description

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.

Definition at line 61 of file Source.h.

Member Function Documentation

void skelcl::Source::append ( const std::string &  source)

Append the given string to the source code.

Parameters
sourceThe 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.


The documentation for this class was generated from the following files: