Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

Vec< T > Class Template Reference

Vector of primitive numeric values. More...

#include <vec.hpp>

List of all members.

Public Member Functions

 Vec (int size=0)
 Vec (const Vec &)
 ~Vec ()
void setSize (int size)
int size () const
T & operator[] (int n)
const T & operator[] (int n) const
T & operator() (int n)
const T & operator() (int n) const
Vec< T > & operator= (const Vec< T > &)
Vec< T > operator+ (const Vec< T > &) const
Vec< T > & operator+= (const Vec< T > &)
Vec< T > operator- (const Vec< T > &) const
Vec< T > & operator-= (const Vec< T > &)
Vec< T > operator- () const
Vec< T > & operator= (const T &)
Vec< T > operator* (const T &) const
Vec< T > & operator*= (const T &)
bool operator== (const Vec< T > &) const
bool operator!= (const Vec< T > &) const
bool operator< (const Vec< T > &) const
bool operator<= (const Vec< T > &) const
bool operator> (const Vec< T > &) const
bool operator>= (const Vec< T > &) const
bool operator== (const T &t) const
bool operator!= (const T &t) const
bool operator< (const T &t) const
bool operator<= (const T &t) const
bool operator> (const T &t) const
bool operator>= (const T &t) const

Private Attributes

int _size
T * _v

Detailed Description

template<class T>
class Vec< T >

Vector of primitive numeric values.

This implementation is built for speed. It does not work with non-primitive types!

Definition at line 19 of file vec.hpp.


Constructor & Destructor Documentation

template<class T >
Vec< T >::Vec ( int  size = 0  )  [inline, explicit]

Definition at line 73 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
Vec< T >::Vec ( const Vec< T > &  m  )  [inline]

Definition at line 80 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
Vec< T >::~Vec (  )  [inline]

Definition at line 92 of file vec.hpp.

References Vec< T >::_v.


Member Function Documentation

template<class T >
bool Vec< T >::operator!= ( const T &  t  )  const [inline]

Definition at line 316 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
bool Vec< T >::operator!= ( const Vec< T > &  m  )  const [inline]

Definition at line 251 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
const T & Vec< T >::operator() ( int  n  )  const [inline]

Definition at line 140 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
T & Vec< T >::operator() ( int  n  )  [inline]

Definition at line 133 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
Vec< T > Vec< T >::operator* ( const T &  t  )  const [inline]

Definition at line 223 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
Vec< T > & Vec< T >::operator*= ( const T &  t  )  [inline]

Definition at line 232 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
Vec< T > Vec< T >::operator+ ( const Vec< T > &  m  )  const [inline]

Definition at line 166 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
Vec< T > & Vec< T >::operator+= ( const Vec< T > &  m  )  [inline]

Definition at line 176 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
Vec< T > Vec< T >::operator- (  )  const [inline]

Definition at line 206 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
Vec< T > Vec< T >::operator- ( const Vec< T > &  m  )  const [inline]

Definition at line 186 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
Vec< T > & Vec< T >::operator-= ( const Vec< T > &  m  )  [inline]

Definition at line 196 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
bool Vec< T >::operator< ( const T &  t  )  const [inline]

Definition at line 326 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
bool Vec< T >::operator< ( const Vec< T > &  m  )  const [inline]

Definition at line 262 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
bool Vec< T >::operator<= ( const T &  t  )  const [inline]

Definition at line 336 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
bool Vec< T >::operator<= ( const Vec< T > &  m  )  const [inline]

Definition at line 273 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
Vec< T > & Vec< T >::operator= ( const T &  t  )  [inline]

Definition at line 215 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
Vec< T > & Vec< T >::operator= ( const Vec< T > &  m  )  [inline]

Definition at line 147 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
bool Vec< T >::operator== ( const T &  t  )  const [inline]

Definition at line 306 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
bool Vec< T >::operator== ( const Vec< T > &  m  )  const [inline]

Definition at line 240 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
bool Vec< T >::operator> ( const T &  t  )  const [inline]

Definition at line 346 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
bool Vec< T >::operator> ( const Vec< T > &  m  )  const [inline]

Definition at line 284 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
bool Vec< T >::operator>= ( const T &  t  )  const [inline]

Definition at line 356 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
bool Vec< T >::operator>= ( const Vec< T > &  m  )  const [inline]

Definition at line 295 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
const T & Vec< T >::operator[] ( int  n  )  const [inline]

Definition at line 126 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
T & Vec< T >::operator[] ( int  n  )  [inline]

Definition at line 119 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

template<class T >
void Vec< T >::setSize ( int  size  )  [inline]

Definition at line 99 of file vec.hpp.

References Vec< T >::_size, and Vec< T >::_v.

Referenced by lu().

template<class T >
int Vec< T >::size (  )  const [inline]

Member Data Documentation

template<class T>
int Vec< T >::_size [private]
template<class T>
T* Vec< T >::_v [private]

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


6 Jan 2011 Doxygen 1.6.3