Jetson Linux API Reference

32.7.4 Release
Argus::Range< T > Class Template Reference

Detailed Description

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

Range template class.

This is a Tuple specialization containing 2 elements corresponding to the min and max values of the range, in that order. Values can be accessed using the named methods.

Definition at line 798 of file Types.h.

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

Public Member Functions

 Range ()
 
 Range (const Tuple< 2, T > &other)
 
 Range (T init)
 
 Range (T _min, T _max)
 
T & min ()
 
const T & min () const
 
T & max ()
 
const T & max () const
 
bool empty () const
 
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

◆ Range() [1/4]

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

Definition at line 801 of file Types.h.

◆ Range() [2/4]

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

Definition at line 802 of file Types.h.

◆ Range() [3/4]

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

Definition at line 804 of file Types.h.

References Argus::Range< T >::max(), and Argus::Range< T >::min().

◆ Range() [4/4]

template<typename T >
Argus::Range< T >::Range ( _min,
_max 
)
inline

Definition at line 809 of file Types.h.

References Argus::Range< T >::max(), and Argus::Range< T >::min().

Member Function Documentation

◆ empty()

template<typename T >
bool Argus::Range< T >::empty ( ) const
inline

Definition at line 820 of file Types.h.

References Argus::Range< T >::max(), and Argus::Range< T >::min().

◆ max() [1/2]

template<typename T >
T& Argus::Range< T >::max ( )
inline

Definition at line 817 of file Types.h.

Referenced by Argus::Range< T >::empty(), and Argus::Range< T >::Range().

◆ max() [2/2]

template<typename T >
const T& Argus::Range< T >::max ( ) const
inline

Definition at line 818 of file Types.h.

◆ min() [1/2]

template<typename T >
T& Argus::Range< T >::min ( )
inline

Definition at line 815 of file Types.h.

Referenced by Argus::Range< T >::empty(), and Argus::Range< T >::Range().

◆ min() [2/2]

template<typename T >
const T& Argus::Range< T >::min ( ) const
inline

Definition at line 816 of file Types.h.

◆ operator!=()

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 519 of file Types.h.

◆ operator*()

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 569 of file Types.h.

◆ operator*=()

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 541 of file Types.h.

◆ operator+()

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 557 of file Types.h.

◆ operator+=()

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 525 of file Types.h.

◆ operator-()

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 563 of file Types.h.

◆ operator-=()

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 533 of file Types.h.

◆ operator/()

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 575 of file Types.h.

◆ operator/=()

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 549 of file Types.h.

◆ operator==()

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 513 of file Types.h.

◆ operator[]() [1/2]

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

Definition at line 580 of file Types.h.

◆ operator[]() [2/2]

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

Definition at line 581 of file Types.h.

◆ tupleSize()

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

Returns the number of elements in the tuple.

Definition at line 584 of file Types.h.

Field Documentation

◆ m_data

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

Definition at line 587 of file Types.h.


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