#include <TinyVector.hpp>

Public Member Functions | |
| operator T & () | |
| operator const T & () const | |
| T & | operator[] (const size_t &i) |
| const T & | operator[] (const size_t &i) const |
| size_t | size () const |
| TinyVector (const T &y) | |
| TinyVector () | |
| TinyVector (const TinyVector< 1, real_t > &V) | |
| Copy constructor. | |
| ~TinyVector () | |
Protected Attributes | |
| T | __x |
| The value of the. | |
Private Types | |
| enum | { Dimension = 1 } |
| typedef T | ValueType |
| The type of values stored in the TinyVector. | |
Definition at line 830 of file TinyVector.hpp.
typedef T TinyVector< 1, T >::ValueType [private] |
anonymous enum [private] |
| TinyVector< 1, T >::TinyVector | ( | const T & | y | ) | [inline] |
Constructs a TinyVector using a T
| y | the given value |
Definition at line 908 of file TinyVector.hpp.
00909 : __x(y) 00910 { 00911 ; 00912 }
| TinyVector< 1, T >::TinyVector | ( | ) | [inline] |
| TinyVector< 1, T >::TinyVector | ( | const TinyVector< 1, real_t > & | V | ) | [inline] |
Copy constructor.
Copy constructor.
| V | the original vector |
Definition at line 930 of file TinyVector.hpp.
| TinyVector< 1, T >::~TinyVector | ( | ) | [inline] |
| TinyVector< 1, T >::operator T & | ( | ) | [inline] |
Cast operators to use TinyVector<1, T> as r_values. So, TinyVector<1,T> can be used as an argument for all 'T' functions.
Definition at line 850 of file TinyVector.hpp.
References TinyVector< N, T >::__x.
00851 { 00852 return __x; 00853 }
| TinyVector< 1, T >::operator const T & | ( | ) | const [inline] |
Cast operators to use TinyVector<1, T> as r_values. So, TinyVector<1,T> can be used as an argument for all 'T' functions.
Definition at line 862 of file TinyVector.hpp.
References TinyVector< N, T >::__x.
00863 { 00864 return __x; 00865 }
| T& TinyVector< 1, T >::operator[] | ( | const size_t & | i | ) | [inline] |
Compatibility access function
| i | the component |
Definition at line 874 of file TinyVector.hpp.
References TinyVector< N, T >::__x, and ASSERT.
| const T& TinyVector< 1, T >::operator[] | ( | const size_t & | i | ) | const [inline] |
Compatibility access function
| i | the component |
Definition at line 887 of file TinyVector.hpp.
References TinyVector< N, T >::__x, and ASSERT.
| size_t TinyVector< 1, T >::size | ( | ) | const [inline] |
Read-only access to the dimension of the TinyVector.
Definition at line 898 of file TinyVector.hpp.
T TinyVector< 1, T >::__x [protected] |
1.5.6