BlockedArray< T, logBlockSize > Class Template Reference

#include <memory.h>

List of all members.

Public Member Functions

 BlockedArray (uint32_t nu, uint32_t nv, const T *d=NULL)
uint32_t BlockSize () const
uint32_t RoundUp (uint32_t x) const
uint32_t uSize () const
uint32_t vSize () const
 ~BlockedArray ()
uint32_t Block (uint32_t a) const
uint32_t Offset (uint32_t a) const
T & operator() (uint32_t u, uint32_t v)
const T & operator() (uint32_t u, uint32_t v) const
void GetLinearArray (T *a) const

Private Attributes

T * data
uint32_t uRes
uint32_t vRes
uint32_t uBlocks

Detailed Description

template<typename T, int logBlockSize>
class BlockedArray< T, logBlockSize >

Definition at line 146 of file memory.h.


Constructor & Destructor Documentation

template<typename T, int logBlockSize>
BlockedArray< T, logBlockSize >::BlockedArray ( uint32_t  nu,
uint32_t  nv,
const T *  d = NULL 
) [inline]

Definition at line 149 of file memory.h.

template<typename T, int logBlockSize>
BlockedArray< T, logBlockSize >::~BlockedArray (  )  [inline]

Definition at line 168 of file memory.h.


Member Function Documentation

template<typename T, int logBlockSize>
uint32_t BlockedArray< T, logBlockSize >::Block ( uint32_t  a  )  const [inline]

Definition at line 173 of file memory.h.

Referenced by BlockedArray< RGBSpectrum >::operator()().

template<typename T, int logBlockSize>
uint32_t BlockedArray< T, logBlockSize >::BlockSize (  )  const [inline]
template<typename T, int logBlockSize>
void BlockedArray< T, logBlockSize >::GetLinearArray ( T *  a  )  const [inline]

Definition at line 189 of file memory.h.

template<typename T, int logBlockSize>
uint32_t BlockedArray< T, logBlockSize >::Offset ( uint32_t  a  )  const [inline]

Definition at line 174 of file memory.h.

Referenced by BlockedArray< RGBSpectrum >::operator()().

template<typename T, int logBlockSize>
const T& BlockedArray< T, logBlockSize >::operator() ( uint32_t  u,
uint32_t  v 
) const [inline]

Definition at line 182 of file memory.h.

template<typename T, int logBlockSize>
T& BlockedArray< T, logBlockSize >::operator() ( uint32_t  u,
uint32_t  v 
) [inline]

Definition at line 175 of file memory.h.

template<typename T, int logBlockSize>
uint32_t BlockedArray< T, logBlockSize >::RoundUp ( uint32_t  x  )  const [inline]

Definition at line 163 of file memory.h.

Referenced by BlockedArray< RGBSpectrum >::BlockedArray().

template<typename T, int logBlockSize>
uint32_t BlockedArray< T, logBlockSize >::uSize (  )  const [inline]

Definition at line 166 of file memory.h.

Referenced by MIPMap< T >::EWA(), MIPMap< T >::Texel(), and MIPMap< T >::triangle().

template<typename T, int logBlockSize>
uint32_t BlockedArray< T, logBlockSize >::vSize (  )  const [inline]

Definition at line 167 of file memory.h.

Referenced by MIPMap< T >::EWA(), MIPMap< T >::Texel(), and MIPMap< T >::triangle().


Member Data Documentation

template<typename T, int logBlockSize>
T* BlockedArray< T, logBlockSize >::data [private]
template<typename T, int logBlockSize>
uint32_t BlockedArray< T, logBlockSize >::uBlocks [private]
template<typename T, int logBlockSize>
uint32_t BlockedArray< T, logBlockSize >::uRes [private]
template<typename T, int logBlockSize>
uint32_t BlockedArray< T, logBlockSize >::vRes [private]

The documentation for this class was generated from the following file:
Generated on Sat Aug 28 20:00:13 2010 for pbrt by  doxygen 1.6.3