Go to the source code of this file.
◆ PARAM_COPY
| #define PARAM_COPY |
( |
|
param_type | ) |
|
Value: public: \
virtual std::shared_ptr<nndeploy::base::Param> copy() { \
std::shared_ptr<nndeploy::base::Param> param(new param_type()); \
param_type *param_ptr = dynamic_cast<param_type *>(param.get()); \
*param_ptr = *this; \
return param; \
}
Definition at line 16 of file param.h.
◆ PARAM_COPY_TO
| #define PARAM_COPY_TO |
( |
|
param_type | ) |
|
Value: public: \
param_type *param_ptr = dynamic_cast<param_type *>(param); \
if (nullptr == param_ptr) { \
NNDEPLOY_LOGE("dynamic cast to %s failed\n", #param_type); \
} \
*param_ptr = *this; \
}
@ kStatusCodeErrorInvalidParam
Definition at line 25 of file param.h.