Logo Search packages:      
Sourcecode: lttoolbox version File versions

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

Add an element to the buffer.

Parameters:
value the value.
Returns:
reference to the stored object.

Definition at line 123 of file Buffer.H.

Referenced by FSTProcessor::readAnalysis(), FSTProcessor::readPostgeneration(), and FSTProcessor::readSAO().

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


Generated by  Doxygen 1.6.0   Back to index