SkePU(integratedwithStarPU)  0.8.1
 All Classes Namespaces Files Functions Enumerations Friends Macros Groups Pages
Namespaces | Functions
helper_methods.h File Reference

Contains few helper methods that are used globally by different classes. More...

#include <string>
#include <algorithm>
#include <fstream>
#include <sstream>
Include dependency graph for helper_methods.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 skepu
 The main nemaspace for SkePU library.
 

Functions

const std::string skepu::trimSpaces (const std::string &pString, const std::string &pWhitespace=" \t")
 
template<typename T >
skepu::get_random_number (T min, T max)
 
std::string skepu::read_file_into_string (const std::string &filename)
 
void skepu::toLowerCase (std::string &str)
 
void skepu::toUpperCase (std::string &str)
 
bool skepu::startsWith (const std::string &main, const std::string &prefix)
 
template<typename T >
T * skepu::allocateHostMemory (unsigned int n)
 
template<typename T >
void skepu::deallocateHostMemory (T *p)
 

Detailed Description

Contains few helper methods that are used globally by different classes.