Cuda::SizeBase< Dim > Class Template Reference

Base class for multi-dimensional size type. More...

#include <size.hpp>

Inheritance diagram for Cuda::SizeBase< Dim >:

Inheritance graph
[legend]
Collaboration diagram for Cuda::SizeBase< Dim >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

size_t getSize () const
 Get total number of elements.


Detailed Description

template<unsigned Dim>
class Cuda::SizeBase< Dim >

Base class for multi-dimensional size type.

Think of it as a multi-dimensional variant of size_t.


Member Function Documentation

template<unsigned Dim>
size_t Cuda::SizeBase< Dim >::getSize (  )  const [inline]

Get total number of elements.

This is the product of the sizes in each dimension.

Returns:
total number of elements


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

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