models/network/iris/components/genericBuffer.cc
Flit*
GenericBuffer::peek (unsigned ch)
{
    assert(ch < buffers.size());
    assert(buffers[ch].size() <= buffer_size);

    Flit* f = 0;
    if(buffers[ch].size() > 0)
        f = buffers[ch].front();
    return f;
}
/*!
 * ===  FUNCTION  ======================================================================
 *         Name:  peek
 *  Description:  Uses the pull channel. Make sure to set it before peek is
 *  called. Normal usage is to get a pointer to the head of the buffer without
 *  actually pulling it out from the buffer
 * =====================================================================================
 */
===  FUNCTION
Name:  peek
Description:  Uses the pull channel. Make sure to set it before peek is
called. Normal usage is to get a pointer to the head of the buffer without
actually pulling it out from the buffer
=== FUNCTION Name : peek Description : Uses the pull channel . Make sure to set it before peek is called . Normal usage is to get a pointer to the head of the buffer without actually pulling it out from the buffer
Flit*
GenericBuffer::peek (unsigned ch)
{
    assert(ch < buffers.size());
    assert(buffers[ch].size() <= buffer_size);
    Flit* f = 0;
    if(buffers[ch].size() > 0)
        f = buffers[ch].front();
    return f;
}
Flit * GenericBuffer :: peek ( unsigned ch ) { assert ( ch < buffers . size ( ) ) ; assert ( buffers [ ch ] . size ( ) <= buffer_size ) ; Flit * f = 0 ; if ( buffers [ ch ] . size ( ) > 0 ) f = buffers [ ch ] . front ( ) ; return f ; }
===  FUNCTION
         Name:  peek
  Description:  Uses the pull channel.
=== FUNCTION Name : peek Description : Uses the pull channel .