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

void Impala::Core::Matrix::VirtualMatrixIOBufferWriter::Init ( int  nrRow,
int  nrCol,
Util::IOBuffer buffer,
bool  ownBuffer,
bool  write32,
bool  preWrite 
) [inline, private]

Definition at line 191 of file VirtualMatrixIOBufferWriter.h.

References Impala::Util::IOBuffer::GetPosition(), mBaseOffset, mExpectedRow, mIOBuffer, mLineSize, mNrCol, mNrRow, mOwnBuffer, mPreWrite, mStorTypeSize, mWrite32, and Impala::Util::IOBuffer::Write().

Referenced by VirtualMatrixIOBufferWriter().

00193     {
00194         mNrRow = nrRow;
00195         mNrCol = nrCol;
00196         mIOBuffer = buffer;
00197         mOwnBuffer = ownBuffer;
00198         mBaseOffset = mIOBuffer->GetPosition();
00199         mWrite32 = write32;
00200         mStorTypeSize = (write32) ? 4 : 8;
00201         mLineSize = mNrCol * mStorTypeSize;
00202         mPreWrite = preWrite;
00203 
00204         String typeStr = (mWrite32) ? "real32" : "real64";
00205         String formatStr = "version: 1, binary: 1, type: " + typeStr +
00206             ", elemSize: %lld, width: %lld, height: %lld, nr: %lld";
00207         Int64 elemSize = 1;
00208         Int64 nrA = 1;
00209 
00210         char buf[200];
00211         memset(buf, 0, 200);
00212         sprintf(buf, formatStr.c_str(), elemSize, mNrCol, mNrRow, nrA);
00213         buffer->Write(buf, 200);
00214         if (mPreWrite)
00215         {
00216             if (mWrite32)
00217                 PreWriteRows<Real32>();
00218             else
00219                 PreWriteRows<Real64>();
00220             mExpectedRow = -1;
00221         }
00222         else
00223         {
00224             mExpectedRow = 0;
00225         }
00226     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:20:23 2011 for ImpalaSrc by  doxygen 1.5.1