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

List of all members.

Public Member Functions

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

Public Attributes

size_t w
size_t size_t d const

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


Constructor & Destructor Documentation

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

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

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

The Array3D constructor creates and allocates the specified 3-dimensional array in the host memory.

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

Member Function Documentation

template<typename T>
PSkel::Array3D< 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.
[in]ddepth 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