Cuda::VectorBase< Type, Dim > Class Template Reference

Base class for vector type. More...

#include <vector.hpp>

Inheritance diagram for Cuda::VectorBase< Type, Dim >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 VectorBase ()
 Default constructor.
Type operator[] (size_t i) const
 Array index operator.
Type & operator[] (size_t i)
 Array index operator.

Protected Attributes

Type data [Dim]
 The size in each dimension.


Detailed Description

template<class Type, unsigned Dim>
class Cuda::VectorBase< Type, Dim >

Base class for vector type.

Constructor & Destructor Documentation

template<class Type, unsigned Dim>
Cuda::VectorBase< Type, Dim >::VectorBase (  )  [inline]

Default constructor.

Set size to zero in all dimensions.


Member Function Documentation

template<class Type, unsigned Dim>
Type Cuda::VectorBase< Type, Dim >::operator[] ( size_t  i  )  const [inline]

Array index operator.

Returns:
size in given (i-th) dimension
Parameters:
i index

template<class Type, unsigned Dim>
Type& Cuda::VectorBase< Type, Dim >::operator[] ( size_t  i  )  [inline]

Array index operator.

Returns:
size in given (i-th) dimension
Parameters:
i index


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

Generated on Sun Sep 13 00:55:21 2009 for cudatemplates by  doxygen 1.5.6