simutil.h Source File¶
|
API
|
simutil.h
38SIM_API void intCastError(const std::string& num, const cObject *context, const char *errmsg=nullptr);
48 static_assert(std::is_integral<ToInt>::value && std::is_integral<FromInt>::value, "checked_int_cast expects integers");
63 static_assert(std::is_integral<ToInt>::value && std::is_integral<FromInt>::value, "checked_int_cast expects integers");
cObject is a lightweight class which serves as the root of the OMNeT++ class hierarchy....
Definition cobject.h:93
SIM_API const char * opp_typename(const std::type_info &t)
Returns the name of a C++ type, correcting the quirks of various compilers.
SIM_API int64_t opp_get_monotonic_clock_usecs()
Returns a monotonic time in microseconds since some unspecified starting point. This clock is not aff...
SIM_API int64_t opp_get_monotonic_clock_nsecs()
Returns a monotonic time in nanoseconds since some unspecified starting point. This clock is not affe...
ToInt checked_int_cast(FromInt x, const char *errmsg=nullptr)
Safe integer cast: it throws an exception if in case of an overflow, i.e. when if the target type can...
Definition simutil.h:46
Generated on for API by