|
dl
|
2维vector 更多...
#include <dl_vector2.h>
Public 类型 | |
| using | Size = Array<Index, 2> |
| using | PointU = Size |
Public 成员函数 | |
| Vector2 () | |
| 空构造 | |
| Vector2 (const Size &size) | |
| 以指定大小构造 | |
| Vector2 (const Size &size, const T *p) | |
| 以指定大小构造,并传入指针赋值初始化 | |
| Vector2 (const Vector2 &b) | |
| 复制构造 todo | |
| void | Resize (const Size &size) |
| 调整为指定大小 | |
| Vector2 & | operator= (const Vector2 &b) |
| std::span< T > | operator[] (Index j) |
| 返回第j行 | |
| const std::span< T > | operator[] (Index j) const |
| 返回第j行 | |
| const T & | Get (Index j, Index i) const |
| 返回第j行 第i个 | |
| const T & | Get (const PointU &xy) const |
| T & | GetRef (Index j, Index i) |
| T & | GetRef (const PointU &xy) |
| T * | GetPointer (Index j, Index i) |
| 返回元素地址,失败返回空 | |
| T * | GetPointer (const PointU &xy) |
| T * | GetPointerOffset (const PointU &xy, const Point &offset) |
| void | Set (Index j, Index i, const T &v) |
| void | Fill (const T &v) |
| 填充值 | |
| void | Clear () |
| void | CopyCross (const Vector2 &b) |
| 从b拷贝重复的面积 | |
| void | PushBack (std::vector< T > &vec) |
| 插入行 | |
| bool | IsEmpty () const |
| const std::byte * | GetBuffer () const |
| T * | GetData () |
| const T * | GetData () const |
| Index | GetWidth () const |
| Index | GetHeight () const |
| Size | GetSize () const |
| Index | GetSizeMul () const |
| Index | GetSizeByte () |
| auto | begin () |
| auto | end () |
| void | reserve (size_t i) |
| void | emplace_back (T &&t) |
| size_t | size () const |
静态 Public 成员函数 | |
| static Vector2 | RotateRightAngle1 (const Vector2 &v) |
2维vector
在文件 dl_vector2.h 第 30 行定义.
| using dl::Vector2< T, Index >::PointU = Size |
在文件 dl_vector2.h 第 34 行定义.
| using dl::Vector2< T, Index >::Size = Array<Index, 2> |
在文件 dl_vector2.h 第 33 行定义.
|
inline |
空构造
在文件 dl_vector2.h 第 38 行定义.
|
inline |
以指定大小构造
在文件 dl_vector2.h 第 45 行定义.
|
inline |
以指定大小构造,并传入指针赋值初始化
在文件 dl_vector2.h 第 53 行定义.
|
inline |
复制构造 todo
在文件 dl_vector2.h 第 65 行定义.
|
inline |
在文件 dl_vector2.h 第 255 行定义.
|
inline |
在文件 dl_vector2.h 第 180 行定义.
|
inline |
|
inline |
在文件 dl_vector2.h 第 267 行定义.
|
inline |
在文件 dl_vector2.h 第 259 行定义.
|
inline |
填充值
在文件 dl_vector2.h 第 175 行定义.
|
inline |
在文件 dl_vector2.h 第 129 行定义.
|
inline |
|
inline |
在文件 dl_vector2.h 第 214 行定义.
|
inline |
在文件 dl_vector2.h 第 219 行定义.
|
inline |
在文件 dl_vector2.h 第 224 行定义.
|
inline |
在文件 dl_vector2.h 第 234 行定义.
|
inline |
在文件 dl_vector2.h 第 153 行定义.
|
inline |
返回元素地址,失败返回空
在文件 dl_vector2.h 第 146 行定义.
|
inline |
在文件 dl_vector2.h 第 157 行定义.
|
inline |
在文件 dl_vector2.h 第 139 行定义.
|
inline |
在文件 dl_vector2.h 第 133 行定义.
|
inline |
在文件 dl_vector2.h 第 239 行定义.
|
inline |
在文件 dl_vector2.h 第 250 行定义.
|
inline |
在文件 dl_vector2.h 第 245 行定义.
|
inline |
在文件 dl_vector2.h 第 229 行定义.
|
inline |
在文件 dl_vector2.h 第 212 行定义.
|
inline |
在文件 dl_vector2.h 第 84 行定义.
|
inline |
返回第j行
在文件 dl_vector2.h 第 98 行定义.
|
inline |
返回第j行
在文件 dl_vector2.h 第 106 行定义.
|
inline |
|
inline |
在文件 dl_vector2.h 第 263 行定义.
|
inline |
|
inlinestatic |
在文件 dl_vector2.h 第 276 行定义.
|
inline |
在文件 dl_vector2.h 第 165 行定义.
|
inline |
在文件 dl_vector2.h 第 271 行定义.