GenGeo  1.1
nvector< T, n > Class Template Reference

#include <nvector.h>

Public Member Functions

 nvector ()
 nvector (const T)
 nvector (const nvector &)
 ~nvector ()
operator[] (int i) const
T & operator[] (int i)
nvectoroperator= (const nvector &)
nvectoroperator-= (const nvector &)
nvectoroperator+= (const nvector &)
nvector operator- (const nvector &) const
nvector operator+ (const nvector &) const

Static Public Member Functions

static nvector unit (int)

Private Attributes

m_data [n]

Friends

nvector operator/ (const nvector &, T)
ostream & operator<< (ostream &, const nvector &)

Constructor & Destructor Documentation

template<class T , int n>
nvector< T, n >::nvector ( )
template<class T , int n>
nvector< T, n >::nvector ( const T  t)
template<class T , int n>
nvector< T, n >::nvector ( const nvector< T, n > &  v)
template<class T , int n>
nvector< T, n >::~nvector ( )

Member Function Documentation

template<class T , int n>
nvector< T, n > nvector< T, n >::operator+ ( const nvector< T, n > &  v) const
template<class T , int n>
nvector< T, n > & nvector< T, n >::operator+= ( const nvector< T, n > &  v)
template<class T , int n>
nvector< T, n > nvector< T, n >::operator- ( const nvector< T, n > &  v) const
template<class T , int n>
nvector< T, n > & nvector< T, n >::operator-= ( const nvector< T, n > &  v)
template<class T , int n>
nvector< T, n > & nvector< T, n >::operator= ( const nvector< T, n > &  v)
template<class T, int n>
T nvector< T, n >::operator[] ( int  i) const
inline
template<class T, int n>
T& nvector< T, n >::operator[] ( int  i)
inline
template<class T , int n>
nvector< T, n > nvector< T, n >::unit ( int  i)
static

Friends And Related Function Documentation

template<class T, int n>
nvector operator/ ( const nvector< T, n > &  v,
d 
)
friend
template<class T, int n>
ostream& operator<< ( ostream &  ost,
const nvector< T, n > &  v 
)
friend

Member Data Documentation


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