A collection of 3 items of the same type.
More...
#include <triplet.hpp>
template<class T>
class Triplet< T >
A collection of 3 items of the same type.
Definition at line 39 of file triplet.hpp.
◆ Triplet() [1/2]
template<class T>
Triplet< T >::Triplet |
( |
const T & |
first_i, |
|
|
const T & |
second_i, |
|
|
const T & |
third_i |
|
) |
| |
|
inline |
Class constructor.
- Parameters
-
first_i | First item |
second_i | Second item |
third_i | Third item |
Definition at line 57 of file triplet.hpp.
◆ Triplet() [2/2]
Class constructor.
- Parameters
-
tcr | References to three items |
Definition at line 67 of file triplet.hpp.
◆ operator[]() [1/2]
template<class T>
const T& Triplet< T >::operator[] |
( |
size_t |
i | ) |
const |
|
inline |
Random access operator.
- Parameters
-
- Returns
- Reference to appropriate item
Definition at line 90 of file triplet.hpp.
◆ operator[]() [2/2]
template<class T>
T& Triplet< T >::operator[] |
( |
size_t |
i | ) |
|
|
inline |
Random access operator.
- Parameters
-
- Returns
- Reference to appropriate item
Definition at line 103 of file triplet.hpp.
◆ set()
template<class T>
void Triplet< T >::set |
( |
const T & |
first_i, |
|
|
const T & |
second_i, |
|
|
const T & |
third_i |
|
) |
| |
|
inline |
Changle all items.
- Parameters
-
first_i | First item |
second_i | Second item |
third_i | Third item |
Definition at line 77 of file triplet.hpp.
The documentation for this class was generated from the following file: