Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

util::TransposePrefix2D< T, Pr > Class Template Reference

represents the transpose of a prefix sum array. More...

#include <util/transpose2d.hpp>


Detailed Description

template<typename T, typename Pr>
class util::TransposePrefix2D< T, Pr >

represents the transpose of a prefix sum array.

SubPSA respect the 2D prefix sum array skeleton defined by util::PrefixSumArray2DOfTBracket.

This class allows to transpose a prefix sum array for free. It assumes that Pr is a prefix sum array of T. It behaves as a regular prefix sum array.

Parameters:
T type of the element of the matrix
Pr type of the prefix sum array matrix to transpose

List of all members.

Classes

class  Intermediate
 internal data structure of TransposePrefix2D More...

Public Member Functions

 TransposePrefix2D (const Pr &psa)
int prefixsizeX () const
int prefixsizeY () const
Intermediate operator[] (int x) const
 ~TransposePrefix2D ()

Static Public Member Functions

static void convertRectList (const util::RectList< T, util::TransposePrefix2D< T, Pr > > &intermediate, util::RectList< T, Pr > &parts)

Private Member Functions

 TransposePrefix2D (const TransposePrefix2D &c)
TransposePrefix2Doperator= (const TransposePrefix2D &c)
 TransposePrefix2D ()

Private Attributes

const ProriginalMatrix

Constructor & Destructor Documentation

template<typename T, typename Pr>
util::TransposePrefix2D< T, Pr >::TransposePrefix2D ( const TransposePrefix2D< T, Pr > &  c  )  [private]
template<typename T, typename Pr>
util::TransposePrefix2D< T, Pr >::TransposePrefix2D (  )  [private]
template<typename T, typename Pr>
util::TransposePrefix2D< T, Pr >::TransposePrefix2D ( const Pr psa  )  [inline]

TransposePrefix2D constructor

Parameters:
psa the 2d prefix sum array to transpose
template<typename T, typename Pr>
util::TransposePrefix2D< T, Pr >::~TransposePrefix2D (  )  [inline]

Member Function Documentation

template<typename T, typename Pr>
static void util::TransposePrefix2D< T, Pr >::convertRectList ( const util::RectList< T, util::TransposePrefix2D< T, Pr > > &  intermediate,
util::RectList< T, Pr > &  parts 
) [inline, static]
template<typename T, typename Pr>
TransposePrefix2D& util::TransposePrefix2D< T, Pr >::operator= ( const TransposePrefix2D< T, Pr > &  c  )  [private]
template<typename T, typename Pr>
Intermediate util::TransposePrefix2D< T, Pr >::operator[] ( int  x  )  const [inline]
template<typename T, typename Pr>
int util::TransposePrefix2D< T, Pr >::prefixsizeX (  )  const [inline]
Returns:
row number of prefixSumArray, not real array
template<typename T, typename Pr>
int util::TransposePrefix2D< T, Pr >::prefixsizeY (  )  const [inline]
Returns:
column number of prefixSumArray, not real array

Member Data Documentation

template<typename T, typename Pr>
const Pr& util::TransposePrefix2D< T, Pr >::originalMatrix [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines