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

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

Get the last element of the buffer.

Returns:
last element.

Definition at line 175 of file Buffer.H.

Referenced by Buffer< unsigned short >::next().

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


Generated by  Doxygen 1.6.0   Back to index