dl
dl::VectorAny类 参考

任意对象容器(组件) 更多...

#include <dl_component.h>

Public 成员函数

void PushBack (AnyType any)
 添加一个任意对象
 
void Clear ()
 
template<typename T>
std::vector< T * > GetMulti ()
 返回所有指定类型的对象
 
template<typename T>
TGet (size_t index=0)
 返回第n个类型对象,失败返回nullptr
 
auto & GetVector ()
 返回所有对象
 
std::vector< AnyType >::iterator begin ()
 
std::vector< AnyType >::iterator end ()
 
size_t GetSize ()
 

详细描述

任意对象容器(组件)

在文件 dl_component.h134 行定义.

成员函数说明

◆ begin()

std::vector< AnyType >::iterator dl::VectorAny::begin ( )
inline

在文件 dl_component.h196 行定义.

◆ Clear()

void dl::VectorAny::Clear ( )
inline

在文件 dl_component.h146 行定义.

◆ end()

std::vector< AnyType >::iterator dl::VectorAny::end ( )
inline

在文件 dl_component.h198 行定义.

◆ Get()

template<typename T>
T * dl::VectorAny::Get ( size_t index = 0)
inline

返回第n个类型对象,失败返回nullptr

在文件 dl_component.h173 行定义.

◆ GetMulti()

template<typename T>
std::vector< T * > dl::VectorAny::GetMulti ( )
inline

返回所有指定类型的对象

在文件 dl_component.h155 行定义.

◆ GetSize()

size_t dl::VectorAny::GetSize ( )
inline

在文件 dl_component.h200 行定义.

◆ GetVector()

auto & dl::VectorAny::GetVector ( )
inline

返回所有对象

在文件 dl_component.h191 行定义.

◆ PushBack()

void dl::VectorAny::PushBack ( AnyType any)
inline

添加一个任意对象

参数
[in]any

在文件 dl_component.h141 行定义.


该类的文档由以下文件生成: