MyVector< T > Class Template Reference

#include <AlgebraicTypes.hpp>

List of all members.

Public Member Functions

 MyVector ()
 MyVector (const T &value)
 MyVector (const T &v0, const T &v1, const T &v2)
void init (const T &value)
T & operator[] (std::size_t i)
const T & operator[] (std::size_t i) const
MyVector< T > operator+ ()
MyVector< T > operator- ()
MyVector< T > & operator+= (const MyVector< T > &a)
MyVector< T > & operator-= (const MyVector< T > &a)
MyVector< T > & operator*= (const MyVector< T > &a)
MyVector< T > & operator/= (const MyVector< T > &a)
void print (std::ostream &os) const

Private Attributes

val [3]

template<typename T>
class MyVector< T >


Constructor & Destructor Documentation

template<typename T>
MyVector< T >::MyVector (  )  [inline]

template<typename T>
MyVector< T >::MyVector ( const T &  value  )  [inline]

References MyVector< T >::init().

Here is the call graph for this function:

template<typename T>
MyVector< T >::MyVector ( const T &  v0,
const T &  v1,
const T &  v2 
) [inline]

References MyVector< T >::val.


Member Function Documentation

template<typename T>
void MyVector< T >::init ( const T &  value  )  [inline]

References MyVector< T >::val.

Referenced by main(), and MyVector< T >::MyVector().

Here is the caller graph for this function:

template<typename T>
MyVector<T>& MyVector< T >::operator*= ( const MyVector< T > &  a  )  [inline]

References MyVector< T >::val.

template<typename T>
MyVector<T> MyVector< T >::operator+ (  )  [inline]

template<typename T>
MyVector<T>& MyVector< T >::operator+= ( const MyVector< T > &  a  )  [inline]

References MyVector< T >::val.

template<typename T>
MyVector<T> MyVector< T >::operator- (  )  [inline]

References MyVector< T >::val.

template<typename T>
MyVector<T>& MyVector< T >::operator-= ( const MyVector< T > &  a  )  [inline]

References MyVector< T >::val.

template<typename T>
MyVector<T>& MyVector< T >::operator/= ( const MyVector< T > &  a  )  [inline]

References MyVector< T >::val.

template<typename T>
const T& MyVector< T >::operator[] ( std::size_t  i  )  const [inline]

References MyVector< T >::val.

template<typename T>
T& MyVector< T >::operator[] ( std::size_t  i  )  [inline]

References MyVector< T >::val.

template<typename T>
void MyVector< T >::print ( std::ostream &  os  )  const [inline]

References MyVector< T >::val.


Member Data Documentation

template<typename T>
T MyVector< T >::val[3] [private]


The documentation for this class was generated from the following file:

Generated on Thu Dec 17 11:05:59 2009 for Phalanx by  doxygen 1.5.9