checkandcast.h Source File¶
|
API
|
checkandcast.h
35 o->getOwner() == cSimulation::getActiveSimulation()->getContextModule() ? o->getFullName() : o->getFullPath().c_str(),
64 throw cRuntimeError("check_and_cast(): Cannot cast nullptr to type '%s'", opp_typename(typeid(P)));
cObject is a lightweight class which serves as the root of the OMNeT++ class hierarchy....
Definition cobject.h:93
Thrown when the simulation kernel or other components detect a runtime error.
Definition cexception.h:343
static cSimulation * getActiveSimulation()
Definition csimulation.h:150
P check_and_cast_nullable(T *p)
A variant of check_and_cast<>() that also allows nullptr as input.
Definition checkandcast.h:77
SIM_API const char * opp_typename(const std::type_info &t)
Returns the name of a C++ type, correcting the quirks of various compilers.
P check_and_cast(T *p)
Cast a pointer to the given pointer type P, and throw exception if fails.
Definition checkandcast.h:61
Generated on for API by