dl
dl::Components类 参考

#include <dl_component.h>

Public 成员函数

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

详细描述

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

在文件 dl_component.h 第 209 行定义.

构造及析构函数说明

◆ Components()

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

在文件 dl_component.h 第 213 行定义.

成员函数说明

◆ Cast()

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

试图转到指定类型

注解
失败返回nullptr

在文件 dl_component.h 第 228 行定义.

◆ Clear()

void dl::Components::Clear ( )
inline

在文件 dl_component.h 第 251 行定义.

◆ Get()

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

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

在文件 dl_component.h 第 234 行定义.

◆ GetName()

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

在文件 dl_component.h 第 258 行定义.

◆ GetSelf()

AnyType dl::Components::GetSelf ( )
inline

返回自身

在文件 dl_component.h 第 237 行定义.

◆ GetVectorAny()

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

在文件 dl_component.h 第 256 行定义.

◆ IsPure()

bool dl::Components::IsPure ( )
inline

单纯的Componets,any为空

在文件 dl_component.h 第 270 行定义.

◆ operator!=()

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

在文件 dl_component.h 第 221 行定义.

◆ operator==()

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

在文件 dl_component.h 第 220 行定义.

◆ PushBack()

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

添加一个任意对象

参数
[in]any

在文件 dl_component.h 第 246 行定义.

◆ SetName()

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

设置自定义名字

在文件 dl_component.h 第 264 行定义.


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