Jetson Linux API 参考

32.7.4 版本
Argus::Size2D< T > 类模板参考

详细描述

template<typename T>
class Argus::Size2D< T >

Size2D 模板类。

这是一个 Tuple 特化,包含 2 个元素,分别对应 2D 尺寸的宽度和高度,按此顺序排列。可以使用命名方法访问这些值。

定义于文件 Types.h 的第 723 行。

Argus::Size2D< T > 的继承关系图
Argus::Size2D< T > 的协作图

公共成员函数

 Size2D ()
 
 Size2D (const Tuple< 2, T > &other)
 
 Size2D (T init)
 
 Size2D (T _width, T _height)
 
T & width ()
 
const T & width () const
 
T & height ()
 
const T & height () const
 
area () const
 返回尺寸的面积(宽度 * 高度)。 更多...
 
bool operator== (const Tuple< N, T > &rhs) const
 当两个元组中的每个元素都相同时,返回 true。 更多...
 
bool operator!= (const Tuple< N, T > &rhs) const
 如果两个元组之间存在任何差异,则返回 true。 更多...
 
Tuple< N, T > & operator+= (const Tuple< N, T > &rhs)
 将另一个元组的每个元素添加到此元组的元素中。 更多...
 
Tuple< N, T > & operator-= (const Tuple< N, T > &rhs)
 从此元组的元素中减去另一个元组的每个元素。 更多...
 
Tuple< N, T > & operator*= (const T &rhs)
 将元组中的每个元素乘以一个值。 更多...
 
Tuple< N, T > & operator/= (const T &rhs)
 将元组中的每个元素除以一个值。 更多...
 
const Tuple< N, T > operator+ (const Tuple< N, T > &rhs) const
 返回将另一个元组添加到此元组的结果。 更多...
 
const Tuple< N, T > operator- (const Tuple< N, T > &rhs) const
 返回从此元组中减去另一个元组的结果。 更多...
 
const Tuple< N, T > operator* (const T &rhs) const
 返回将此元组乘以一个值的结果。 更多...
 
const Tuple< N, T > operator/ (const T &rhs) const
 返回将此元组除以一个值的结果。 更多...
 
T & operator[] (unsigned int i)
 
const T & operator[] (unsigned int i) const
 

静态公共成员函数

static unsigned int tupleSize ()
 返回元组中元素的数量。 更多...
 

保护属性

m_data [N]
 

构造函数和析构函数文档

◆ Size2D() [1/4]

template<typename T >
Argus::Size2D< T >::Size2D ( )
inline

定义于文件 Types.h 的第 726 行。

◆ Size2D() [2/4]

template<typename T >
Argus::Size2D< T >::Size2D ( const Tuple< 2, T > &  other)
inline

定义于文件 Types.h 的第 727 行。

◆ Size2D() [3/4]

template<typename T >
Argus::Size2D< T >::Size2D ( init)
inline

定义于文件 Types.h 的第 729 行。

◆ Size2D() [4/4]

template<typename T >
Argus::Size2D< T >::Size2D ( _width,
_height 
)
inline

定义于文件 Types.h 的第 734 行。

成员函数文档

◆ area()

template<typename T >
T Argus::Size2D< T >::area ( ) const
inline

返回尺寸的面积(宽度 * 高度)。

定义于文件 Types.h 的第 746 行。

◆ height() [1/2]

template<typename T >
T& Argus::Size2D< T >::height ( )
inline

◆ height() [2/2]

template<typename T >
const T& Argus::Size2D< T >::height ( ) const
inline

定义于文件 Types.h 的第 743 行。

◆ operator!=()

bool Argus::Tuple< N, T >::operator!= ( const Tuple< N, T > &  rhs) const
inlineinherited

如果两个元组之间存在任何差异,则返回 true。

定义于文件 Types.h 的第 519 行。

◆ operator*()

const Tuple<N, T> Argus::Tuple< N, T >::operator* ( const T &  rhs) const
inlineinherited

返回将此元组乘以一个值的结果。

定义于文件 Types.h 的第 569 行。

◆ operator*=()

Tuple<N, T>& Argus::Tuple< N, T >::operator*= ( const T &  rhs)
inlineinherited

将元组中的每个元素乘以一个值。

定义于文件 Types.h 的第 541 行。

◆ operator+()

const Tuple<N, T> Argus::Tuple< N, T >::operator+ ( const Tuple< N, T > &  rhs) const
inlineinherited

返回将另一个元组添加到此元组的结果。

定义于文件 Types.h 的第 557 行。

◆ operator+=()

Tuple<N, T>& Argus::Tuple< N, T >::operator+= ( const Tuple< N, T > &  rhs)
inlineinherited

将另一个元组的每个元素添加到此元组的元素中。

定义于文件 Types.h 的第 525 行。

◆ operator-()

const Tuple<N, T> Argus::Tuple< N, T >::operator- ( const Tuple< N, T > &  rhs) const
inlineinherited

返回从此元组中减去另一个元组的结果。

定义于文件 Types.h 的第 563 行。

◆ operator-=()

Tuple<N, T>& Argus::Tuple< N, T >::operator-= ( const Tuple< N, T > &  rhs)
inlineinherited

从此元组的元素中减去另一个元组的每个元素。

定义于文件 Types.h 的第 533 行。

◆ operator/()

const Tuple<N, T> Argus::Tuple< N, T >::operator/ ( const T &  rhs) const
inlineinherited

返回将此元组除以一个值的结果。

定义于文件 Types.h 的第 575 行。

◆ operator/=()

Tuple<N, T>& Argus::Tuple< N, T >::operator/= ( const T &  rhs)
inlineinherited

将元组中的每个元素除以一个值。

定义于文件 Types.h 的第 549 行。

◆ operator==()

bool Argus::Tuple< N, T >::operator== ( const Tuple< N, T > &  rhs) const
inlineinherited

当两个元组中的每个元素都相同时,返回 true。

定义于文件 Types.h 的第 513 行。

◆ operator[]() [1/2]

T& Argus::Tuple< N, T >::operator[] ( unsigned int  i)
inlineinherited

定义于文件 Types.h 的第 580 行。

◆ operator[]() [2/2]

const T& Argus::Tuple< N, T >::operator[] ( unsigned int  i) const
inlineinherited

定义于文件 Types.h 的第 581 行。

◆ tupleSize()

static unsigned int Argus::Tuple< N, T >::tupleSize ( )
inlinestaticinherited

返回元组中元素的数量。

定义于文件 Types.h 的第 584 行。

◆ width() [1/2]

template<typename T >
T& Argus::Size2D< T >::width ( )
inline

◆ width() [2/2]

template<typename T >
const T& Argus::Size2D< T >::width ( ) const
inline

定义于文件 Types.h 的第 741 行。

字段文档

◆ m_data

T Argus::Tuple< N, T >::m_data[N]
protectedinherited

定义于文件 Types.h 的第 587 行。


此类文档从以下文件生成
. All rights reserved.