Compiletime vector with one element.
More...
#include <ct_vector.hpp>
Public Types |
typedef T0 | type_0 |
typedef T1 | type_1 |
typedef T2 | type_2 |
Public Member Functions |
| ct_vector_3 (T0 const &t0, T1 const &t1, T2 const &t2) |
| ct_vector_3 (const ct_vector_3 &other) |
T0 const & | operator[] (ct_index< 0 >) const |
| Provides access to the first element using bracket access and a compile time index.
|
T1 const & | operator[] (ct_index< 1 >) const |
| Provides access to the second element using bracket access and a compile time index.
|
T2 const & | operator[] (ct_index< 2 >) const |
| Provides access to the third element using bracket access and a compile time index.
|
template<long i> |
void | operator[] (ct_index< i >) const |
std::size_t | size () const |
Detailed Description
template<typename T0, typename T1, typename T2>
class viennamath::ct_vector_3< T0, T1, T2 >
Compiletime vector with one element.
- Template Parameters:
-
| T0 | First entry of the vector |
| T1 | Second entry of the vector |
| T2 | Third entry of the vector |
Member Typedef Documentation
Constructor & Destructor Documentation
ct_vector_3 |
( |
T0 const & |
t0, |
|
|
T1 const & |
t1, |
|
|
T2 const & |
t2 | |
|
) |
| | [inline] |
Member Function Documentation
T0 const& operator[] |
( |
ct_index< 0 > |
|
) |
const [inline] |
Provides access to the first element using bracket access and a compile time index.
T1 const& operator[] |
( |
ct_index< 1 > |
|
) |
const [inline] |
Provides access to the second element using bracket access and a compile time index.
void operator[] |
( |
ct_index< i > |
|
) |
const [inline] |
T2 const& operator[] |
( |
ct_index< 2 > |
|
) |
const [inline] |
Provides access to the third element using bracket access and a compile time index.
std::size_t size |
( |
|
) |
const [inline] |
The documentation for this class was generated from the following file:
- /export/development/ViennaMath/viennamath/compiletime/ct_vector.hpp