|
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) |
| 调整为指定大小 | |
| 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 第 245 行定义.
|
inline |
在文件 dl_vector2.h 第 170 行定义.
|
inline |
|
inline |
在文件 dl_vector2.h 第 257 行定义.
|
inline |
在文件 dl_vector2.h 第 249 行定义.
|
inline |
填充值
在文件 dl_vector2.h 第 165 行定义.
|
inline |
在文件 dl_vector2.h 第 119 行定义.
|
inline |
|
inline |
在文件 dl_vector2.h 第 204 行定义.
|
inline |
在文件 dl_vector2.h 第 209 行定义.
|
inline |
在文件 dl_vector2.h 第 214 行定义.
|
inline |
在文件 dl_vector2.h 第 224 行定义.
|
inline |
在文件 dl_vector2.h 第 143 行定义.
|
inline |
返回元素地址,失败返回空
在文件 dl_vector2.h 第 136 行定义.
|
inline |
在文件 dl_vector2.h 第 147 行定义.
|
inline |
在文件 dl_vector2.h 第 129 行定义.
|
inline |
在文件 dl_vector2.h 第 123 行定义.
|
inline |
在文件 dl_vector2.h 第 229 行定义.
|
inline |
在文件 dl_vector2.h 第 240 行定义.
|
inline |
在文件 dl_vector2.h 第 235 行定义.
|
inline |
在文件 dl_vector2.h 第 219 行定义.
|
inline |
在文件 dl_vector2.h 第 202 行定义.
|
inline |
返回第j行
在文件 dl_vector2.h 第 88 行定义.
|
inline |
返回第j行
在文件 dl_vector2.h 第 96 行定义.
|
inline |
|
inline |
在文件 dl_vector2.h 第 253 行定义.
|
inline |
|
inlinestatic |
在文件 dl_vector2.h 第 266 行定义.
|
inline |
在文件 dl_vector2.h 第 155 行定义.
|
inline |
在文件 dl_vector2.h 第 261 行定义.