|
| template<typename C , typename P > |
| void | convertFromIF (const std::set< P * > &parents, std::set< C * > &childs) |
| | 将父类指针的集合转换为子类指针的集合
|
| |
| template<typename C , typename P > |
| void | convertFromIF (const std::vector< P * > &parents, std::vector< C * > &childs) |
| | 将父类指针的向量转换为子类指针的向量
|
| |
| template<typename C , typename P > |
| void | convertFromIF (const std::vector< std::shared_ptr< P > > &parents, std::vector< std::shared_ptr< C > > &childs) |
| | 将父类智能指针的向量转换为子类智能指针的向量
|
| |
| template<typename C , typename P > |
| void | convertToIF (const std::set< C * > &childs, std::set< P * > &parents) |
| | 将子类指针的集合转换为父类指针的集合
|
| |
| template<typename C , typename P > |
| void | convertToIF (const std::vector< C * > &childs, std::vector< P * > &parents) |
| | 将子类指针的向量转换为父类指针的向量
|
| |
| template<typename C , typename P > |
| void | convertToIF (const std::vector< std::shared_ptr< C > > &childs, std::vector< std::shared_ptr< P > > &parents) |
| | 将子类智能指针的向量转换为父类智能指针的向量
|
| |
| template<typename C > |
| C * | convertToPtr (const std::shared_ptr< C > &obj) |
| | 将智能指针转换为原始指针
|
| |
| template<typename T > |
| std::vector< T * > | convertToPtrVector (const std::vector< std::shared_ptr< T > > &sharedPtrVec) |
| | 将智能指针向量转换为原始指针向量
|
| |
| template<typename C > |
| std::shared_ptr< C > | convertToSharedPtr (C *obj) |
| | 将原始指针转换为智能指针
|
| |
| template<typename T > |
| std::vector< std::shared_ptr< T > > | convertToSharedPtrVector (const std::vector< T * > &ptrVec) |
| | 将原始指针向量转换为智能指针向量
|
| |