dl
Public 成员函数 | 所有成员列表
dl::Vector2< T > 模板类 参考

#include <dl_vector2.h>

Public 成员函数

 Vector2 ()
 空构造 更多...
 
 Vector2 (const Size &size)
 以指定大小构造 更多...
 
 Vector2 (const Size &size, const T *p)
 以指定大小构造,并传入指针赋值初始化 更多...
 
std::span< T > operator[] (std::size_t j)
 返回第j行 更多...
 
const T & Get (std::size_t j, std::size_t i) const
 返回第j行 第i个 更多...
 
void Fill (const T &v)
 填充值 更多...
 
void PushBack (std::vector< T > &vec)
 插入行 更多...
 
bool IsEmpty () const
 
const std::byte * GetBuffer () const
 
T * GetData ()
 
const T * GetData () const
 
unsigned GetWidth () const
 
unsigned GetHeight () const
 
Size GetSize () const
 
unsigned GetSizeMul () const
 
size_t GetSizeByte ()
 
auto begin ()
 
auto end ()
 

详细描述

template<typename T>
class dl::Vector2< T >

在文件 dl_vector2.h 第 28 行定义.

构造及析构函数说明

◆ Vector2() [1/3]

template<typename T >
dl::Vector2< T >::Vector2 ( )
inline

空构造

在文件 dl_vector2.h 第 34 行定义.

◆ Vector2() [2/3]

template<typename T >
dl::Vector2< T >::Vector2 ( const Size &  size)
inline

以指定大小构造

在文件 dl_vector2.h 第 41 行定义.

◆ Vector2() [3/3]

template<typename T >
dl::Vector2< T >::Vector2 ( const Size &  size,
const T *  p 
)
inline

以指定大小构造,并传入指针赋值初始化

在文件 dl_vector2.h 第 49 行定义.

成员函数说明

◆ begin()

template<typename T >
auto dl::Vector2< T >::begin ( )
inline

在文件 dl_vector2.h 第 149 行定义.

◆ end()

template<typename T >
auto dl::Vector2< T >::end ( )
inline

在文件 dl_vector2.h 第 153 行定义.

◆ Fill()

template<typename T >
void dl::Vector2< T >::Fill ( const T &  v)
inline

填充值

在文件 dl_vector2.h 第 89 行定义.

◆ Get()

template<typename T >
const T & dl::Vector2< T >::Get ( std::size_t  j,
std::size_t  i 
) const
inline

返回第j行 第i个

注解
与传统[]访问一致,先访问行

在文件 dl_vector2.h 第 79 行定义.

◆ GetBuffer()

template<typename T >
const std::byte * dl::Vector2< T >::GetBuffer ( ) const
inline

在文件 dl_vector2.h 第 108 行定义.

◆ GetData() [1/2]

template<typename T >
T * dl::Vector2< T >::GetData ( )
inline

在文件 dl_vector2.h 第 113 行定义.

◆ GetData() [2/2]

template<typename T >
const T * dl::Vector2< T >::GetData ( ) const
inline

在文件 dl_vector2.h 第 118 行定义.

◆ GetHeight()

template<typename T >
unsigned dl::Vector2< T >::GetHeight ( ) const
inline

在文件 dl_vector2.h 第 128 行定义.

◆ GetSize()

template<typename T >
Size dl::Vector2< T >::GetSize ( ) const
inline

在文件 dl_vector2.h 第 133 行定义.

◆ GetSizeByte()

template<typename T >
size_t dl::Vector2< T >::GetSizeByte ( )
inline

在文件 dl_vector2.h 第 144 行定义.

◆ GetSizeMul()

template<typename T >
unsigned dl::Vector2< T >::GetSizeMul ( ) const
inline

在文件 dl_vector2.h 第 139 行定义.

◆ GetWidth()

template<typename T >
unsigned dl::Vector2< T >::GetWidth ( ) const
inline

在文件 dl_vector2.h 第 123 行定义.

◆ IsEmpty()

template<typename T >
bool dl::Vector2< T >::IsEmpty ( ) const
inline

在文件 dl_vector2.h 第 106 行定义.

◆ operator[]()

template<typename T >
std::span< T > dl::Vector2< T >::operator[] ( std::size_t  j)
inline

返回第j行

在文件 dl_vector2.h 第 62 行定义.

◆ PushBack()

template<typename T >
void dl::Vector2< T >::PushBack ( std::vector< T > &  vec)
inline

插入行

在文件 dl_vector2.h 第 98 行定义.


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