![]() |
Jetson Linux Multimedia API Reference32.4.3 Release |
Size2D template class.
This is a Tuple specialization containing 2 elements corresponding to the width and height of a 2D size, in that order. Values can be accessed using the named methods.
Public Member Functions | |
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 |
T | area () const |
Returns the area of the size (width * height). More... | |
bool | operator== (const Tuple< N, T > &rhs) const |
Returns true when every element in the two tuples are identical. More... | |
bool | operator!= (const Tuple< N, T > &rhs) const |
Returns true if there are any differences between the two tuples. More... | |
Tuple< N, T > & | operator+= (const Tuple< N, T > &rhs) |
Adds every element of another tuple to the elements of this tuple. More... | |
Tuple< N, T > & | operator-= (const Tuple< N, T > &rhs) |
Subtracts every element of another tuple from the elements of this tuple. More... | |
Tuple< N, T > & | operator*= (const T &rhs) |
Multiplies every element in the tuple by a single value. More... | |
Tuple< N, T > & | operator/= (const T &rhs) |
Divides every element in the tuple by a single value. More... | |
const Tuple< N, T > | operator+ (const Tuple< N, T > &rhs) const |
Returns the result of adding another tuple to this tuple. More... | |
const Tuple< N, T > | operator- (const Tuple< N, T > &rhs) const |
Returns the result of subtracting another tuple from this tuple. More... | |
const Tuple< N, T > | operator* (const T &rhs) const |
Returns the result of multiplying this tuple by a single value. More... | |
const Tuple< N, T > | operator/ (const T &rhs) const |
Returns the result of dividing this tuple by a single value. More... | |
T & | operator[] (unsigned int i) |
const T & | operator[] (unsigned int i) const |
Static Public Member Functions | |
static unsigned int | tupleSize () |
Returns the number of elements in the tuple. More... | |
Protected Attributes | |
T | m_data [N] |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 662 of file Types.h.
Referenced by Argus::Size2D< uint32_t >::area(), Argus::Array2D< T >::Array2D(), Argus::Array2D< T >::resize(), and Argus::Size2D< uint32_t >::Size2D().
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Multiplies every element in the tuple by a single value.
Definition at line 493 of file Types.h.
References Argus::Tuple< N, T >::m_data.
|
inlineinherited |
|
inlineinherited |
Adds every element of another tuple to the elements of this tuple.
Definition at line 477 of file Types.h.
References Argus::Tuple< N, T >::m_data.
|
inlineinherited |
|
inlineinherited |
Subtracts every element of another tuple from the elements of this tuple.
Definition at line 485 of file Types.h.
References Argus::Tuple< N, T >::m_data.
|
inlineinherited |
|
inlineinherited |
Divides every element in the tuple by a single value.
Definition at line 501 of file Types.h.
References Argus::Tuple< N, T >::m_data.
|
inlineinherited |
Returns true when every element in the two tuples are identical.
Definition at line 465 of file Types.h.
References Argus::Tuple< N, T >::m_data.
|
inlineinherited |
Definition at line 532 of file Types.h.
References Argus::Tuple< N, T >::m_data.
|
inlineinherited |
Definition at line 533 of file Types.h.
References Argus::Tuple< N, T >::m_data.
|
inlinestaticinherited |
|
inline |
Definition at line 660 of file Types.h.
Referenced by Argus::Size2D< uint32_t >::area(), Argus::Array2D< T >::Array2D(), Argus::Array2D< T >::resize(), and Argus::Size2D< uint32_t >::Size2D().
|
inline |
|
protectedinherited |