lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Pds::LinkedListSL< T > Class Template Reference

Typed wrapper over Pds::ListBase (private base) in which every operation holds a per-object Pds::SpinLock. More...

#include <LinkedListSL.hh>

Inherits Pds::ListBase.

Public Member Functions

 ~LinkedListSL ()
 Does nothing; empty body.
 
 LinkedListSL ()
 Construct an element linked to itself (ListBase default constructor).
 
 LinkedListSL (T *listhead)
 Construct with ListBase(listhead).
 
T * connect (T *after)
 Under the lock, insert this element after after (ListBase::connect()) and return after as T*.
 
T * disconnect ()
 Under the lock, unlink this element (ListBase::disconnect()) and return it as T*.
 
T * insert (ListBase *entry)
 Under the lock, call ListBase::insert(entry) and return the result as T*.
 
T * insertList (ListBase *list)
 Under the lock, call ListBase::insertList(list) and return the result as T*.
 
T * remove ()
 Under the lock, call ListBase::remove() and return the result as T*.
 
T * empty () const
 Under the lock, return ListBase::empty() as T*.
 
T * forward () const
 Under the lock, return the next element as T*.
 
T * reverse () const
 Under the lock, return the previous element as T*.
 

Detailed Description

template<class T>
class Pds::LinkedListSL< T >

Typed wrapper over Pds::ListBase (private base) in which every operation holds a per-object Pds::SpinLock.

Constructor & Destructor Documentation

◆ ~LinkedListSL()

template<class T >
Pds::LinkedListSL< T >::~LinkedListSL ( )
inline

Does nothing; empty body.

◆ LinkedListSL() [1/2]

template<class T >
Pds::LinkedListSL< T >::LinkedListSL ( )
inline

Construct an element linked to itself (ListBase default constructor).

◆ LinkedListSL() [2/2]

template<class T >
Pds::LinkedListSL< T >::LinkedListSL ( T *  listhead)
inline

Construct with ListBase(listhead).

Member Function Documentation

◆ connect()

template<class T >
T * Pds::LinkedListSL< T >::connect ( T *  after)
inline

Under the lock, insert this element after after (ListBase::connect()) and return after as T*.

◆ disconnect()

template<class T >
T * Pds::LinkedListSL< T >::disconnect ( )
inline

Under the lock, unlink this element (ListBase::disconnect()) and return it as T*.

◆ empty()

template<class T >
T * Pds::LinkedListSL< T >::empty ( ) const
inline

Under the lock, return ListBase::empty() as T*.

◆ forward()

template<class T >
T * Pds::LinkedListSL< T >::forward ( ) const
inline

Under the lock, return the next element as T*.

◆ insert()

template<class T >
T * Pds::LinkedListSL< T >::insert ( ListBase *  entry)
inline

Under the lock, call ListBase::insert(entry) and return the result as T*.

◆ insertList()

template<class T >
T * Pds::LinkedListSL< T >::insertList ( ListBase *  list)
inline

Under the lock, call ListBase::insertList(list) and return the result as T*.

◆ remove()

template<class T >
T * Pds::LinkedListSL< T >::remove ( )
inline

Under the lock, call ListBase::remove() and return the result as T*.

◆ reverse()

template<class T >
T * Pds::LinkedListSL< T >::reverse ( ) const
inline

Under the lock, return the previous element as T*.


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