PSkel
 All Classes Files Functions
Public Member Functions | Public Attributes
PSkel::Array2D< T > Class Template Reference
Inheritance diagram for PSkel::Array2D< T >:
PSkel::ArrayBase< T >

List of all members.

Public Member Functions

 Array2D ()
 Array2D (size_t width, size_t height)
 __attribute__ ((always_inline)) __forceinline__ __device__ __host__ T &operator()(size_t h

Public Attributes

size_t w const

template<typename T>
class PSkel::Array2D< T >


Constructor & Destructor Documentation

template<typename T >
PSkel::Array2D< T >::Array2D ( )

The Array2D default constructor creates an empty array withour allocating memory space.

template<typename T >
PSkel::Array2D< T >::Array2D ( size_t  width,
size_t  height 
)

The Array2D constructor creates and allocates the specified 2-dimensional array in the host memory.

Parameters:
[in]widthwidth for the 2D array being created.
[in]heightheight for the 2D array being created.

Member Function Documentation

template<typename T>
PSkel::Array2D< T >::__attribute__ ( (always_inline)  )

Access a specific element of the array allocated in the memory space relative to the execution environment, i.e. either in the host or device memory.

Parameters:
[in]hheight offset for the element being accessed.
[in]wwidth offset for the element being accessed.
Returns:
the reference of the element specified via parameters.

The documentation for this class was generated from the following files:
 All Classes Files Functions