#include <GLVector.h>
Collaboration diagram for mathglpp::GLVectorArray3< T >:
Definition at line 742 of file GLVector.h.
Public Types | |
enum | { D = 3 } |
typedef T | value_type |
typedef std::valarray< value_type > | vector_type |
Public Member Functions | |
GLVectorArray3 () | |
Create an uninitialised vector. | |
GLVectorArray3 (const T &v) | |
Create an initialised vector. | |
GLVectorArray3 (const GLVectorArray3 &gv) | |
Copy a vector. | |
GLVectorArray3 (const vector_type &v) | |
Copy a vector. | |
GLVectorArray3 (const T *f, int nVec) | |
Create a vector from an array. | |
~GLVectorArray3 () | |
Default destructor. | |
T & | operator[] (int ind) |
element by element accessor | |
operator T * (void) | |
implicit casting to a pointer | |
operator const T * (void) const | |
implicit casting to a const pointer | |
void | copyTo (T *v) const |
copy values to a array | |
const GLVectorArray3 | operator+ (const GLVectorArray3 &gv) const |
Get the sum of this and a vector. | |
const GLVectorArray3 | operator- (const GLVectorArray3 &gv) const |
Get the difference of this and a vector. | |
const GLVectorArray3 | operator * (const GLVectorArray3 &gv) const |
Get the element-by-element product of this and a vector. | |
const GLVectorArray3 | operator/ (const GLVectorArray3 &gv) const |
Get the element-by-element quota of this and a vector. | |
const GLVectorArray3 | operator * (const T &v) const |
Get the element-by-element product of this and a scalar. | |
const GLVectorArray3 | operator/ (const T &v) const |
Get the element-by-element quota of this and a scalar. | |
GLVectorArray3 & | operator+= (const GLVectorArray3 &gv) |
Add a vector to this. | |
GLVectorArray3 & | operator-= (const GLVectorArray3 &gv) |
Subtract a vector from this. | |
GLVectorArray3 & | operator *= (const T &f) |
Multiply this by a scalar. | |
GLVectorArray3 & | operator/= (const T &f) |
Divide this by a scalar. | |
GLVectorArray3 & | operator= (const GLVectorArray3 &gv) |
copy this from a vector | |
const GLVectorArray3 | operator- () const |
negate this | |
Public Attributes | |
vector_type | vec |
Value array. |
anonymous enum |
mathglpp::GLVectorArray3< T >::GLVectorArray3 | ( | ) | [inline] |
Create an uninitialised vector.
Definition at line 750 of file GLVector.h.
Referenced by mathglpp::GLVectorArray3< T >::operator *(), mathglpp::GLVectorArray3< T >::operator+(), mathglpp::GLVectorArray3< T >::operator-(), and mathglpp::GLVectorArray3< T >::operator/().
00750 :vec() { }
mathglpp::GLVectorArray3< T >::GLVectorArray3 | ( | const T & | v | ) | [inline] |
mathglpp::GLVectorArray3< T >::GLVectorArray3 | ( | const GLVectorArray3< T > & | gv | ) | [inline] |
mathglpp::GLVectorArray3< T >::GLVectorArray3 | ( | const vector_type & | v | ) | [inline] |
mathglpp::GLVectorArray3< T >::GLVectorArray3 | ( | const T * | f, | |
int | nVec | |||
) | [inline] |
mathglpp::GLVectorArray3< T >::~GLVectorArray3 | ( | ) | [inline] |
T& mathglpp::GLVectorArray3< T >::operator[] | ( | int | ind | ) | [inline] |
element by element accessor
Definition at line 775 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::vec.
00776 { return vec[ind]; }
mathglpp::GLVectorArray3< T >::operator T * | ( | void | ) | [inline] |
implicit casting to a pointer
Definition at line 779 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::vec.
00780 { return &vec[0]; }
mathglpp::GLVectorArray3< T >::operator const T * | ( | void | ) | const [inline] |
implicit casting to a const pointer
Definition at line 783 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::vec.
00784 { return &vec[0]; }
void mathglpp::GLVectorArray3< T >::copyTo | ( | T * | v | ) | const [inline] |
copy values to a array
Definition at line 787 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::D, and mathglpp::GLVectorArray3< T >::vec.
const GLVectorArray3 mathglpp::GLVectorArray3< T >::operator+ | ( | const GLVectorArray3< T > & | gv | ) | const [inline] |
Get the sum of this and a vector.
Definition at line 791 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::GLVectorArray3().
00792 { 00793 return GLVectorArray3(*this)+=gv; 00794 }
Here is the call graph for this function:
const GLVectorArray3 mathglpp::GLVectorArray3< T >::operator- | ( | const GLVectorArray3< T > & | gv | ) | const [inline] |
Get the difference of this and a vector.
Definition at line 797 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::GLVectorArray3().
00798 { 00799 return GLVectorArray3(*this)-=gv; 00800 }
Here is the call graph for this function:
const GLVectorArray3 mathglpp::GLVectorArray3< T >::operator * | ( | const GLVectorArray3< T > & | gv | ) | const [inline] |
Get the element-by-element product of this and a vector.
Definition at line 803 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::GLVectorArray3().
00804 { 00805 return GLVectorArray3(*this)*=gv; 00806 }
Here is the call graph for this function:
const GLVectorArray3 mathglpp::GLVectorArray3< T >::operator/ | ( | const GLVectorArray3< T > & | gv | ) | const [inline] |
Get the element-by-element quota of this and a vector.
Definition at line 809 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::GLVectorArray3().
00810 { 00811 return GLVectorArray3(*this)/=gv; 00812 }
Here is the call graph for this function:
const GLVectorArray3 mathglpp::GLVectorArray3< T >::operator * | ( | const T & | v | ) | const [inline] |
Get the element-by-element product of this and a scalar.
Definition at line 815 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::GLVectorArray3().
00816 { 00817 return GLVectorArray3(*this)*=v; 00818 }
Here is the call graph for this function:
const GLVectorArray3 mathglpp::GLVectorArray3< T >::operator/ | ( | const T & | v | ) | const [inline] |
Get the element-by-element quota of this and a scalar.
Definition at line 821 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::GLVectorArray3().
00822 { 00823 return GLVectorArray3(*this)/=v; 00824 }
Here is the call graph for this function:
GLVectorArray3& mathglpp::GLVectorArray3< T >::operator+= | ( | const GLVectorArray3< T > & | gv | ) | [inline] |
Add a vector to this.
Definition at line 827 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::vec.
00828 { 00829 vec += gv.vec; 00830 return *this; 00831 }
GLVectorArray3& mathglpp::GLVectorArray3< T >::operator-= | ( | const GLVectorArray3< T > & | gv | ) | [inline] |
Subtract a vector from this.
Definition at line 834 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::vec.
00835 { 00836 vec -= gv.vec; 00837 return *this; 00838 }
GLVectorArray3& mathglpp::GLVectorArray3< T >::operator *= | ( | const T & | f | ) | [inline] |
Multiply this by a scalar.
Definition at line 841 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::vec.
00842 { 00843 vec *= f; 00844 return *this; 00845 }
GLVectorArray3& mathglpp::GLVectorArray3< T >::operator/= | ( | const T & | f | ) | [inline] |
Divide this by a scalar.
Definition at line 848 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::vec.
00849 { 00850 vec /= f; 00851 return *this; 00852 }
GLVectorArray3& mathglpp::GLVectorArray3< T >::operator= | ( | const GLVectorArray3< T > & | gv | ) | [inline] |
copy this from a vector
Definition at line 855 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::vec.
00856 { 00857 vec = gv.vec; 00858 return *this; 00859 }
const GLVectorArray3 mathglpp::GLVectorArray3< T >::operator- | ( | ) | const [inline] |
negate this
Definition at line 862 of file GLVector.h.
References mathglpp::GLVectorArray3< T >::GLVectorArray3(), and mathglpp::GLVectorArray3< T >::vec.
00863 { 00864 return GLVectorArray3(-vec); 00865 }
Here is the call graph for this function:
vector_type mathglpp::GLVectorArray3< T >::vec |
Value array.
Definition at line 868 of file GLVector.h.
Referenced by mathglpp::GLVectorArray3< T >::copyTo(), mathglpp::GLVectorArray3< T >::operator *=(), mathglpp::GLVectorArray3< T >::operator const T *(), mathglpp::GLVectorArray3< T >::operator T *(), mathglpp::GLVectorArray3< T >::operator+=(), mathglpp::GLVectorArray3< T >::operator-(), mathglpp::GLVectorArray3< T >::operator-=(), mathglpp::GLVectorArray3< T >::operator/=(), mathglpp::GLVectorArray3< T >::operator=(), and mathglpp::GLVectorArray3< T >::operator[]().