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

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

Consume the buffer's current value.

Returns:
the current value.

Definition at line 155 of file Buffer.H.

    {
      if(currentpos != lastpos)
      {
      if(currentpos == size)
      {
        currentpos = 0;
      }
      return buf[currentpos++];
      }
      else
      {
      return last();
      }
    }


Generated by  Doxygen 1.6.0   Back to index