Public Member Functions | Private Member Functions | Private Attributes

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

This class implements the interval notation for 1d array as defined by util::PrefixSumArray1DOfTInterval. More...

#include <util/aggreg2dto1dpart.hpp>


Detailed Description

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

This class implements the interval notation for 1d array as defined by util::PrefixSumArray1DOfTInterval.

This class implements the interval notation for 1d array as defined by util::PrefixSumArray1DOfTInterval. The data come from a 2d prefix sum array. The size of the exposed 1d array is given by the first dimension of the 2d prefix sum array. When asked for the value of an interval (in the first dimension), the stripe defined by the interval is partitioned along the second dimension using the oned::NicolPlus algorithm.

Parameters:
T type of the data.
Pr type of the 2d prefix sum array.

List of all members.

Public Member Functions

 Aggreg2Dto1Dpart (const Pr &p, int nbproc)
T interval (int i1, int i2) const
 ~Aggreg2Dto1Dpart ()

Private Member Functions

Aggreg2Dto1Dpart< T, Pr > & operator= (const Aggreg2Dto1Dpart< T, Pr > &rhs)
 deactivated since it does not make sense
 Aggreg2Dto1Dpart ()
 deactivated since it does not make sense
 Aggreg2Dto1Dpart (const Aggreg2Dto1Dpart< T, Pr > &o)
 deactivated since it does not make sense

Private Attributes

const Prpr
 the 2d prefix sum array which is represented
const int m
int * temp

Constructor & Destructor Documentation

template<typename T, typename Pr>
util::Aggreg2Dto1Dpart< T, Pr >::Aggreg2Dto1Dpart (  )  [private]

deactivated since it does not make sense

template<typename T, typename Pr>
util::Aggreg2Dto1Dpart< T, Pr >::Aggreg2Dto1Dpart ( const Aggreg2Dto1Dpart< T, Pr > &  o  )  [private]

deactivated since it does not make sense

template<typename T , typename Pr >
util::Aggreg2Dto1Dpart< T, Pr >::Aggreg2Dto1Dpart ( const Pr p,
int  nbproc 
)
template<typename T , typename Pr >
util::Aggreg2Dto1Dpart< T, Pr >::~Aggreg2Dto1Dpart (  ) 

Member Function Documentation

template<typename T , typename Pr >
T util::Aggreg2Dto1Dpart< T, Pr >::interval ( int  i1,
int  i2 
) const

it looks like the interval is ]i1:i2] (TODO: Erdeniz can you confirm) it looks like the interval might be empty and 0 should be returned in that case

template<typename T, typename Pr>
Aggreg2Dto1Dpart<T,Pr>& util::Aggreg2Dto1Dpart< T, Pr >::operator= ( const Aggreg2Dto1Dpart< T, Pr > &  rhs  )  [private]

deactivated since it does not make sense


Member Data Documentation

template<typename T, typename Pr>
const int util::Aggreg2Dto1Dpart< T, Pr >::m [private]
template<typename T, typename Pr>
const Pr& util::Aggreg2Dto1Dpart< T, Pr >::pr [private]

the 2d prefix sum array which is represented

template<typename T, typename Pr>
int* util::Aggreg2Dto1Dpart< T, Pr >::temp [private]

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