L4T Multimedia API Reference

28.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Argus::Size2D< T > Class Template Reference

Detailed Description

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

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.

Definition at line 665 of file Types.h.

Inheritance diagram for Argus::Size2D< T >:
Collaboration diagram for Argus::Size2D< T >:

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
 
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

m_data [N]
 

Constructor & Destructor Documentation

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

Definition at line 668 of file Types.h.

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

Definition at line 669 of file Types.h.

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

Definition at line 671 of file Types.h.

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

Definition at line 676 of file Types.h.

Member Function Documentation

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

Returns the area of the size (width * height).

Definition at line 688 of file Types.h.

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

Definition at line 685 of file Types.h.

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

Returns true if there are any differences between the two tuples.

Definition at line 493 of file Types.h.

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

Returns the result of multiplying this tuple by a single value.

Definition at line 543 of file Types.h.

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

Multiplies every element in the tuple by a single value.

Definition at line 515 of file Types.h.

References Argus::Tuple< N, T >::m_data.

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

Returns the result of adding another tuple to this tuple.

Definition at line 531 of file Types.h.

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

Adds every element of another tuple to the elements of this tuple.

Definition at line 499 of file Types.h.

References Argus::Tuple< N, T >::m_data.

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

Returns the result of subtracting another tuple from this tuple.

Definition at line 537 of file Types.h.

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

Subtracts every element of another tuple from the elements of this tuple.

Definition at line 507 of file Types.h.

References Argus::Tuple< N, T >::m_data.

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

Returns the result of dividing this tuple by a single value.

Definition at line 549 of file Types.h.

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

Divides every element in the tuple by a single value.

Definition at line 523 of file Types.h.

References Argus::Tuple< N, T >::m_data.

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

Returns true when every element in the two tuples are identical.

Definition at line 487 of file Types.h.

References Argus::Tuple< N, T >::m_data.

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

Definition at line 554 of file Types.h.

References Argus::Tuple< N, T >::m_data.

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

Definition at line 555 of file Types.h.

References Argus::Tuple< N, T >::m_data.

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

Returns the number of elements in the tuple.

Definition at line 558 of file Types.h.

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

Definition at line 683 of file Types.h.

Field Documentation

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

Definition at line 561 of file Types.h.


The documentation for this class was generated from the following file: