RSC
0.13.4
|
#include <string>
#include <boost/cstdint.hpp>
#include <boost/shared_ptr.hpp>
#include "rsc/rscexports.h"
Go to the source code of this file.
Classes | |
class | rsc::misc::NullDeleter |
A deleter object that can be used with boost::shared_ptr that doesn't release any memory. More... | |
class | rsc::misc::ParentSharedPtrDeleter< ParentType > |
A deleter for boost::shared_ptr which enables to use a pointer in a shared_ptr, which is not a shared_ptr itself and owned by another object. More... | |
struct | rsc::misc::detail::true_type |
struct | rsc::misc::detail::false_type |
struct | rsc::misc::detail::converter< test > |
struct | rsc::misc::detail::converter< 0 > |
Namespaces | |
rsc | |
rsc::misc | |
rsc::misc::detail | |
Macros | |
#define | DEPRECATED_MSG(func, msg) func |
This macro allows you to mark a function as being deprecated including a message explaining the deprecation. More... | |
#define | DEPRECATED(fun) DEPRECATED_MSG(fun, "Use of deprecated construct.") |
This macro allows you to mark a function as being deprecated. More... | |
#define | DEPRECATED_CLASS(msg) |
This macro allows you to mark a class as being deprecated. More... | |
#define | PP_CAT(x, y) PP_CAT1(x,y) |
#define | PP_CAT1(x, y) x##y |
#define | STATIC_ASSERT_WARN(cond, msg) |
Generates a compiler warning in case a static condition is not held. More... | |
#define | STATIC_ASSERT_WARN_TEMPLATE(token, cond, msg) STATIC_ASSERT_WARN(cond, msg) PP_CAT(PP_CAT(_localvar_, token),__LINE__) |
Generates a compiler warning in case a static condition is not held. More... | |
Functions | |
boost::uint64_t | rsc::misc::currentTimeMillis () |
Returns the current system time as milliseconds. More... | |
boost::uint64_t | rsc::misc::currentTimeMicros () |
Returns the current system time as microseconds. More... | |
char | rsc::misc::randAlnumChar () |
Generates a random alpha-numeric character. More... | |
std::string | rsc::misc::randAlnumStr (const std::string::size_type &length) |
Generates a random alpha-numeric string with fixed length. More... | |
#define DEPRECATED | ( | fun | ) | DEPRECATED_MSG(fun, "Use of deprecated construct.") |
This macro allows you to mark a function as being deprecated.
A default explanatory message will be used. Usually you should use DEPRECATED_MSG instead.
Usage:
Definition at line 168 of file langutils.h.
#define DEPRECATED_CLASS | ( | msg | ) |
This macro allows you to mark a class as being deprecated.
Usage:
Definition at line 192 of file langutils.h.
#define DEPRECATED_MSG | ( | func, | |
msg | |||
) | func |
This macro allows you to mark a function as being deprecated including a message explaining the deprecation.
Usage:
Definition at line 148 of file langutils.h.
#define PP_CAT | ( | x, | |
y | |||
) | PP_CAT1(x,y) |
Definition at line 198 of file langutils.h.
#define PP_CAT1 | ( | x, | |
y | |||
) | x##y |
Definition at line 199 of file langutils.h.
#define STATIC_ASSERT_WARN | ( | cond, | |
msg | |||
) |
Generates a compiler warning in case a static condition is not held.
Might be used at namespace, structure, and function scope.
Usage:
Definition at line 227 of file langutils.h.
#define STATIC_ASSERT_WARN_TEMPLATE | ( | token, | |
cond, | |||
msg | |||
) | STATIC_ASSERT_WARN(cond, msg) PP_CAT(PP_CAT(_localvar_, token),__LINE__) |
Generates a compiler warning in case a static condition is not held.
Might be used at namespace, structure, and function scope. The first argument must be a completely unique token.
Usage:
Definition at line 248 of file langutils.h.