Go to the source code of this file.
|
#define | safe_cast(type, ...) ::sprockit::__safe_cast__<type>(#type, __FILE__, __LINE__, __VA_ARGS__) |
| First entry in VA_ARGS is the obj Second entry is optional being an error msg. More...
|
|
#define | test_cast(type, obj) dynamic_cast<type*>(obj) |
|
#define | known_cast(type, ...) safe_cast(type, __VA_ARGS__) |
|
#define | interface_cast(type, obj) dynamic_cast<type*>(obj) |
|
#define | ASSERT_CORRECT_MODE check_mode(__PRETTY_FUNCTION__); |
|
#define | SPKT_DELEGATE_ALL_OVERLOADS(method_name, member) spkt_static_assert(false, "SPKT_DELEGATE_ALL_OVERLOADS requires c++11") |
|
#define | spkt_find_if(...) spkt_static_assert(false, "spkt_find_if() requires c++11") |
|
|
template<class Out , class In > |
Out * | sprockit::__safe_cast__ (const char *objname, const char *file, int line, In *in, const char *error_msg="error") |
|
template<class maptype , class keytype > |
const maptype::mapped_type & | sprockit::mapget (const maptype &mapobj, const keytype &keyobj, const char *errormsg) |
|
#define ASSERT_CORRECT_MODE check_mode(__PRETTY_FUNCTION__); |
#define interface_cast |
( |
|
type, |
|
|
|
obj |
|
) |
| dynamic_cast<type*>(obj) |
#define known_cast |
( |
|
type, |
|
|
|
... |
|
) |
| safe_cast(type, __VA_ARGS__) |
#define SPKT_DELEGATE_ALL_OVERLOADS |
( |
|
method_name, |
|
|
|
member |
|
) |
| spkt_static_assert(false, "SPKT_DELEGATE_ALL_OVERLOADS requires c++11") |
#define spkt_find_if |
( |
|
... | ) |
spkt_static_assert(false, "spkt_find_if() requires c++11") |
#define test_cast |
( |
|
type, |
|
|
|
obj |
|
) |
| dynamic_cast<type*>(obj) |