|
dl
|
组件系统 更多...
#include <typeinfo>#include <typeindex>#include <string>#include <vector>#include <array>#include <functional>#include "dl_type.h"#include "math/dl_align.h"#include "math/dl_coor.h"类 | |
| class | dl::Cpt::Variable< T, UID > |
| 变量,注意模板参数 需要实例化后不重复 更多... | |
| class | dl::Cpt::Function< T, UID > |
| 由于this指针在构造完成之前无效,不能在初始化列表构造 更多... | |
| class | dl::AnyType |
| 任意类型包装 更多... | |
| class | dl::VectorAny |
| 任意对象容器(组件) 更多... | |
| class | dl::Components |
| 组件容器 更多... | |
命名空间 | |
| namespace | dl |
| namespace | dl::Cpt |
| 子组件命名空间 | |
函数 | |
| Components * | dl::createComponents (std::string_view name={}) |
| template<typename T> | |
| std::vector< T * > | dl::Cpt::GetComp (std::vector< Components * > &vec) |
| 从vector<Components*>返回指定类型的所有组件 | |
| template<typename T> | |
| T * | dl::Cpt::GetFirst (std::vector< Components * > &vec) |
| 从vector<Components*>返回指定类型的第一个元素 | |
| template<typename T> | |
| T * | dl::Cpt::GetN (std::vector< Components * > &vec, size_t n) |
| 从vector<Components*>返回指定类型的第n个元素 | |
组件系统
在文件 dl_component.h 中定义.