SkePU  1.2
 All Classes Namespaces Files Functions Variables 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 namespace for SkePU library.
 

Functions

static 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)
 
static std::string skepu::read_file_into_string (const std::string &filename)
 
static void skepu::toLowerCase (std::string &str)
 
static void skepu::toUpperCase (std::string &str)
 
static bool skepu::startsWith (const std::string &main, const std::string &prefix)
 
template<typename T >
void skepu::allocateHostMemory (T *&data, const size_t numElems)
 
template<typename T >
void skepu::deallocateHostMemory (T *data)
 

Detailed Description

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