opp_component_ptr.h Source File¶
|
API
|
opp_component_ptr.h
66 throw cRuntimeError("opp_component_ptr<%s>: Pointer cannot be dynamic_cast to cComponent", opp_typename(typeid(T)));
77 throw cRuntimeError("opp_component_ptr<%s>: Cannot dereference nullptr", opp_typename(typeid(T)));
83 throw cRuntimeError("opp_component_ptr<%s>::%s(): context module is nullptr", opp_typename(typeid(T)), methodName);
85 throw cRuntimeError("opp_component_ptr<%s>::%s(): parameter name is nullptr", opp_typename(typeid(T)), methodName);
90 opp_typename(typeid(T)), methodName, parName, context->getClassName(), context->getFullPath().c_str());
96 throw cRuntimeError("opp_component_ptr<%s>::%s(): module '%s' not found, referenced by parameter '%s' of module '(%s)%s'",
97 opp_typename(typeid(T)), methodName, path, parName, context->getClassName(), context->getFullPath().c_str());
100 throw cRuntimeError("opp_component_ptr<%s>::%s(): module '(%s)%s' resolved from parameter '%s' of module '(%s)%s' cannot be cast to type '%s'",
101 opp_typename(typeid(T)), methodName, mod->getClassName(), mod->getFullPath().c_str(), parName, context->getClassName(), context->getFullPath().c_str(), opp_typename(typeid(T)));
108 throw cRuntimeError("opp_component_ptr<%s>::%s(): gate is nullptr", opp_typename(typeid(T)), methodName);
133 throw cRuntimeError("opp_component_ptr<%s>::%s(): no module of type '%s' found along the connection path from gate '%s'",
virtual cPar & par(int k)
virtual cModule * findModuleByPath(const char *path) const
cModule * getOwnerModule() const
virtual std::string getFullPath() const override
virtual const char * getClassName() const
virtual std::string getFullPath() const
const char * stringValue() const
Thrown when the simulation kernel or other components detect a runtime error.
Definition cexception.h:343
opp_component_ptr(const opp_component_ptr< T > &other)
Definition opp_component_ptr.h:155
void resolveFromPar(cModule *context, const char *parName)
Definition opp_component_ptr.h:230
opp_component_ptr(T *ptr)
Definition opp_component_ptr.h:149
void operator=(const opp_component_ptr< T > &ref)
Definition opp_component_ptr.h:200
cGate * resolveFromGate(cGate *gate, int direction=0)
Definition opp_component_ptr.h:262
~opp_component_ptr()
Definition opp_component_ptr.h:160
cGate * resolveFromGateOptional(cGate *gate, int direction=0)
Definition opp_component_ptr.h:246
void resolveFromParOptional(cModule *context, const char *parName)
Definition opp_component_ptr.h:220
SIM_API const char * opp_typename(const std::type_info &t)
Returns the name of a C++ type, correcting the quirks of various compilers.
Generated on for API by