Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

template<class ArrayT>
void Impala::Core::Array::PrintData ( ArrayT *  array,
bool  printBorder,
int  bx,
int  by,
int  width,
int  height 
) [inline]

Definition at line 16 of file PrintData.h.

References ArrayPrintElem().

Referenced by PrintData().

00017 {
00018     typedef typename ArrayT::StorType StorT;
00019 
00020     std::cout << "Array sizes: cw = " << array->CW() << ", ch = " 
00021               << array->CH() << ", bw = " << array->BW() << ", bh = " 
00022               << array->BH() << std::endl;
00023     //StorT* sPtr = (printBorder) ? array->PB(bx, by) 
00024     //                            : array->CPB(bx, by);
00025     for (int y=0 ; y<height ; y++)
00026     {
00027         std::cout << "  Y = " << y << " :- ";
00028         for (int x=0 ; x<width ; x++)
00029         {
00030             //int off = array->Inc(x, y);
00031             //StorT* p = sPtr + off;
00032             StorT* p = (printBorder) ? array->PB(bx + x, by + y)
00033                                      : array->CPB(bx + x, by + y);
00034             ArrayPrintElem(std::cout, array, p);
00035             std::cout << ", ";
00036         }
00037         std::cout << std::endl;
00038     }
00039 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:57:58 2010 for ImpalaSrc by  doxygen 1.5.1