lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Pds::Entry Class Reference

Element of an intrusive doubly linked List; a new entry is linked to itself. More...

#include <Queue.hh>

Inherited by Pds::Routine.

Public Member Functions

 Entry ()
 Construct an entry whose links point to itself.
 
Entry * insert (Entry *after)
 Insert this entry after after and return after.
 
Entry * insertList (Entry *after)
 Splice the list that this entry belongs to (from this entry to its predecessor) in after after; returns after.
 
Entry * remove ()
 Unlink this entry from its list, relink it to itself and return it.
 
Entry * next () const
 Return the next entry.
 
Entry * previous () const
 Return the previous entry.
 

Detailed Description

Element of an intrusive doubly linked List; a new entry is linked to itself.

Constructor & Destructor Documentation

◆ Entry()

Pds::Entry::Entry ( )
inline

Construct an entry whose links point to itself.

Member Function Documentation

◆ insert()

Pds::Entry * Pds::Entry::insert ( Entry *  after)
inline

Insert this entry after after and return after.

The code comment warns that inserting an entry after itself corrupts the list.

◆ insertList()

Pds::Entry * Pds::Entry::insertList ( Entry *  after)
inline

Splice the list that this entry belongs to (from this entry to its predecessor) in after after; returns after.

◆ next()

Pds::Entry * Pds::Entry::next ( ) const
inline

Return the next entry.

◆ previous()

Pds::Entry * Pds::Entry::previous ( ) const
inline

Return the previous entry.

◆ remove()

Pds::Entry * Pds::Entry::remove ( )
inline

Unlink this entry from its list, relink it to itself and return it.


The documentation for this class was generated from the following file: