PEARL
Parallel Event Access and Replay Library
Files | Namespaces | Classes | Typedefs
PEARL.utils

Utility classes, functions, and type definitions. More...

Files

file  Flags.h
 Declaration and implementation of the class template Flags.
 
file  ScopedPtr.h
 Declaration and implementation of the class template ScopedPtr.
 
file  Uncopyable.h
 Declaration and implementation of the class Uncopyable.
 
file  Utils.h
 Declaration and implementation of general utility functions.
 

Namespaces

 pearl::uncopyable
 Helper namespace to prevent unintended argument-dependent name lookup.
 

Classes

class  pearl::Flags< EnumT, StorageT >
 Class template for type-safe enum flags. More...
 
class  pearl::ScopedPtr< BaseT >
 Class template providing a very basic "resource acquisition is initialization" facility. More...
 
class  pearl::uncopyable::Uncopyable
 Policy class to ensure that derived classes cannot be copied. More...
 

Typedefs

typedef pearl::uncopyable::Uncopyable pearl::Uncopyable
 Alias for the pearl::uncopyable::Uncopyable policy class. More...
 

Conversion to string

std::string pearl::toStdString (int value)
 Convert int to std::string. More...
 
std::string pearl::toStdString (long value)
 Convert long to std::string. More...
 
std::string pearl::toStdString (long long value)
 Convert long long to std::string. More...
 
std::string pearl::toStdString (unsigned int value)
 Convert unsigned int to std::string. More...
 
std::string pearl::toStdString (unsigned long value)
 Convert unsigned long to std::string. More...
 
std::string pearl::toStdString (unsigned long long value)
 Convert unsigned long long to std::string. More...
 

Detailed Description

The PEARL.utils module groups utility classes, free functions, and type definitions that are used in defining the public API of the PEARL library. As such, they are in most cases implementation details, but can also be useful when writing applications on top of the PEARL library.

Typedef Documentation

◆ Uncopyable

This type definition makes the pearl::uncopyable::Uncopyable policy class available in the pearl namespace. This class can be used to ensure that derived classes cannot be copied. It is intended to be used via private inheritance.

Example:
class Foo
{
// ...
};

Function Documentation

◆ toStdString() [1/6]

std::string pearl::toStdString ( int  value)
inline

Returns an std::string with the decimal-base character representation of value.

Parameters
valueNumerical int value
Returns
Representation of value as a sequence of characters
Exceptions
std::bad_allocon failure to allocate storage

◆ toStdString() [2/6]

std::string pearl::toStdString ( long long  value)
inline

Returns an std::string with the decimal-base character representation of value.

Parameters
valueNumerical long long value
Returns
Representation of value as a sequence of characters
Exceptions
std::bad_allocon failure to allocate storage

◆ toStdString() [3/6]

std::string pearl::toStdString ( long  value)
inline

Returns an std::string with the decimal-base character representation of value.

Parameters
valueNumerical long value
Returns
Representation of value as a sequence of characters
Exceptions
std::bad_allocon failure to allocate storage

◆ toStdString() [4/6]

std::string pearl::toStdString ( unsigned int  value)
inline

Returns an std::string with the decimal-base character representation of value.

Parameters
valueNumerical unsigned int value
Returns
Representation of value as a sequence of characters
Exceptions
std::bad_allocon failure to allocate storage

◆ toStdString() [5/6]

std::string pearl::toStdString ( unsigned long long  value)
inline

Returns an std::string with the decimal-base character representation of value.

Parameters
valueNumerical unsigned long long value
Returns
Representation of value as a sequence of characters
Exceptions
std::bad_allocon failure to allocate storage

◆ toStdString() [6/6]

std::string pearl::toStdString ( unsigned long  value)
inline

Returns an std::string with the decimal-base character representation of value.

Parameters
valueNumerical unsigned long value
Returns
Representation of value as a sequence of characters
Exceptions
std::bad_allocon failure to allocate storage
pearl::uncopyable::Uncopyable
Policy class to ensure that derived classes cannot be copied.
Definition: Uncopyable.h:50
Uncopyable.h
Declaration and implementation of the class Uncopyable.

Scalasca    Copyright © 1998–2019 Forschungszentrum Jülich GmbH, Jülich Supercomputing Centre
Copyright © 2009–2015 German Research School for Simulation Sciences GmbH, Laboratory for Parallel Programming