Logo Search packages:      
Sourcecode: lttoolbox version File versions  Download package

template<class T>
T& Buffer< T >::add ( void   )  [inline]

Add an element to the buffer and not modify its content, getting the next free reference

Returns:
reference to the stored object.

Definition at line 140 of file Buffer.H.

    {
      if(lastpos == size)
      {
      lastpos = 0;
      }
      currentpos = lastpos;
      return buf[lastpos -1];
    }


Generated by  Doxygen 1.6.0   Back to index