dl
dl::Components类 参考

组件容器 更多...

#include <dl_component.h>

Public 成员函数

template<typename T>
 Components (T *p)
 any表示实际的对象(比如UI::Text),any为空则为Components
 
bool operator== (const Components &b)
 
bool operator!= (const Components &b)
 
template<typename T>
TCast ()
 试图转到指定类型
 
template<typename T>
TGet (size_t index=0)
 返回第n个类型对象,失败返回nullptr
 
AnyType GetSelf ()
 返回自身
 
void PushBack (AnyType any)
 添加一个任意对象
 
void Clear ()
 
VectorAnyGetVectorAny ()
 
std::string GetName ()
 
void SetName (std::string_view name)
 设置自定义名字
 
bool IsPure ()
 单纯的Componets,any为空
 

详细描述

组件容器

在文件 dl_component.h207 行定义.

构造及析构函数说明

◆ Components()

template<typename T>
dl::Components::Components ( T * p)
inline

any表示实际的对象(比如UI::Text),any为空则为Components

在文件 dl_component.h212 行定义.

成员函数说明

◆ Cast()

template<typename T>
T * dl::Components::Cast ( )
inline

试图转到指定类型

注解
失败返回nullptr

在文件 dl_component.h227 行定义.

◆ Clear()

void dl::Components::Clear ( )
inline

在文件 dl_component.h250 行定义.

◆ Get()

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

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

在文件 dl_component.h233 行定义.

◆ GetName()

std::string dl::Components::GetName ( )
inline

在文件 dl_component.h257 行定义.

◆ GetSelf()

AnyType dl::Components::GetSelf ( )
inline

返回自身

在文件 dl_component.h236 行定义.

◆ GetVectorAny()

VectorAny & dl::Components::GetVectorAny ( )
inline

在文件 dl_component.h255 行定义.

◆ IsPure()

bool dl::Components::IsPure ( )
inline

单纯的Componets,any为空

在文件 dl_component.h269 行定义.

◆ operator!=()

bool dl::Components::operator!= ( const Components & b)
inline

在文件 dl_component.h220 行定义.

◆ operator==()

bool dl::Components::operator== ( const Components & b)
inline

在文件 dl_component.h219 行定义.

◆ PushBack()

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

添加一个任意对象

参数
[in]any

在文件 dl_component.h245 行定义.

◆ SetName()

void dl::Components::SetName ( std::string_view name)
inline

设置自定义名字

在文件 dl_component.h263 行定义.


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