BIMHome v1.0.0
BIMHome接口文档说明

◆ convertToIF() [3/3]

template<typename C , typename P >
void convertToIF ( const std::vector< std::shared_ptr< C > > &  childs,
std::vector< std::shared_ptr< P > > &  parents 
)

将子类智能指针的向量转换为父类智能指针的向量

遍历子类智能指针向量,将每个子类智能指针直接添加到父类智能指针向量中。

模板参数
C子类类型
P父类类型
参数
[in]childs子类智能指针的向量
[out]parents父类智能指针的向量