Tuple template class.
More...
#include <Types.h>
List of all members.
Public Member Functions |
| | Tuple () |
| | Tuple (T init) |
| | Initialize every element of the tuple to a single value.
|
| bool | operator== (const Tuple< N, T > &rhs) const |
| | Returns true when every element in the two tuples are identical.
|
| bool | operator!= (const Tuple< N, T > &rhs) const |
| | Returns true if there are any differences between the two tuples.
|
| Tuple< N, T > & | operator+= (const Tuple< N, T > &rhs) |
| | Adds every element of another tuple to the elements of this tuple.
|
| Tuple< N, T > & | operator-= (const Tuple< N, T > &rhs) |
| | Subtracts every element of another tuple from the elements of this tuple.
|
| Tuple< N, T > & | operator*= (const T &rhs) |
| | Multiplies every element in the tuple by a single value.
|
| Tuple< N, T > & | operator/= (const T &rhs) |
| | Divides every element in the tuple by a single value.
|
| const Tuple< N, T > | operator+ (const Tuple< N, T > &rhs) const |
| | Returns the result of adding another tuple to this tuple.
|
| const Tuple< N, T > | operator- (const Tuple< N, T > &rhs) const |
| | Returns the result of subtracting another tuple from this tuple.
|
| const Tuple< N, T > | operator* (const T &rhs) const |
| | Returns the result of multiplying this tuple by a single value.
|
| const Tuple< N, T > | operator/ (const T &rhs) const |
| | Returns the result of dividing this tuple by a single value.
|
| 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.
|
Protected Attributes |
| T | m_data [N] |
Detailed Description
template<unsigned int N, typename T>
class Argus::Tuple< N, T >
Tuple template class.
This provides a finite ordered list of N elements having type T.
Definition at line 469 of file Types.h.
Constructor & Destructor Documentation
template<unsigned int N, typename T>
template<unsigned int N, typename T>
Initialize every element of the tuple to a single value.
Definition at line 475 of file Types.h.
Member Function Documentation
template<unsigned int N, typename T>
Returns true if there are any differences between the two tuples.
Definition at line 488 of file Types.h.
template<unsigned int N, typename T>
Returns the result of multiplying this tuple by a single value.
Definition at line 538 of file Types.h.
template<unsigned int N, typename T>
Multiplies every element in the tuple by a single value.
Definition at line 510 of file Types.h.
template<unsigned int N, typename T>
Returns the result of adding another tuple to this tuple.
Definition at line 526 of file Types.h.
template<unsigned int N, typename T>
Adds every element of another tuple to the elements of this tuple.
Definition at line 494 of file Types.h.
template<unsigned int N, typename T>
Returns the result of subtracting another tuple from this tuple.
Definition at line 532 of file Types.h.
template<unsigned int N, typename T>
Subtracts every element of another tuple from the elements of this tuple.
Definition at line 502 of file Types.h.
template<unsigned int N, typename T>
Returns the result of dividing this tuple by a single value.
Definition at line 544 of file Types.h.
template<unsigned int N, typename T>
Divides every element in the tuple by a single value.
Definition at line 518 of file Types.h.
template<unsigned int N, typename T>
Returns true when every element in the two tuples are identical.
Definition at line 482 of file Types.h.
template<unsigned int N, typename T>
template<unsigned int N, typename T>
| const T& Argus::Tuple< N, T >::operator[] |
( |
unsigned int |
i | ) |
const |
|
inline |
template<unsigned int N, typename T>
Returns the number of elements in the tuple.
Definition at line 553 of file Types.h.
Member Data Documentation
template<unsigned int N, typename T>
The documentation for this class was generated from the following file: