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

template<class ArrayT>
void Impala::Core::Vector::VectorSet< ArrayT >::AddVector ( const VectorT vec  )  [inline]

Definition at line 123 of file VectorSet.h.

References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CPB(), Impala::Core::Vector::VectorSet< ArrayT >::GetVector(), Impala::Max(), Impala::Core::Vector::VectorSet< ArrayT >::mCapacity, Impala::Core::Vector::VectorSet< ArrayT >::mFirst, Impala::Core::Vector::VectorSet< ArrayT >::mHasConstVecSize, Impala::Core::Vector::VectorSet< ArrayT >::mLast, Impala::Core::Vector::VectorSet< ArrayT >::mLength, Impala::Core::Vector::VectorSet< ArrayT >::Reserve(), Impala::Core::Vector::VectorTem< ElemT >::Size(), and Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::Value().

Referenced by Impala::Core::Vector::VectorSet< ArrayT >::AddVector().

00124     {
00125         // todo : for nonConstVecSize check whether mStorage is big enough,
00126         //        now only the "number of vectors" is checked
00127         if (mLast == mCapacity)
00128             Reserve(Impala::Max(2*mCapacity, 1), true);
00129         if (!mHasConstVecSize)
00130         {
00131             int lastVec = mLast - 1;
00132             int first = 0;
00133             if (mLast != 0)
00134                 first = mFirst->Value(lastVec, 0) + mLength->Value(lastVec, 0);
00135             *(mFirst->CPB(mLast, 0)) = first;
00136             *(mLength->CPB(mLast, 0)) = vec.Size();
00137         }
00138         GetVector(mLast++, true) = vec;
00139     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:21:38 2011 for ImpalaSrc by  doxygen 1.5.1