Utility classes, functions, and type definitions.
More...
|
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.
|
|
|
| pearl::uncopyable |
| Helper namespace to prevent unintended argument-dependent name lookup.
|
|
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.
◆ 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:
-
◆ toStdString() [1/6]
std::string pearl::toStdString |
( |
int |
value | ) |
|
|
inline |
Returns an std::string
with the decimal-base character representation of value
.
- Parameters
-
- Returns
- Representation of
value
as a sequence of characters
- Exceptions
-
std::bad_alloc | on 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
-
value | Numerical long long value |
- Returns
- Representation of
value
as a sequence of characters
- Exceptions
-
std::bad_alloc | on 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
-
value | Numerical long value |
- Returns
- Representation of
value
as a sequence of characters
- Exceptions
-
std::bad_alloc | on 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
-
value | Numerical unsigned int value |
- Returns
- Representation of
value
as a sequence of characters
- Exceptions
-
std::bad_alloc | on 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
-
value | Numerical unsigned long long value |
- Returns
- Representation of
value
as a sequence of characters
- Exceptions
-
std::bad_alloc | on 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
-
value | Numerical unsigned long value |
- Returns
- Representation of
value
as a sequence of characters
- Exceptions
-
std::bad_alloc | on failure to allocate storage |