Scippy

SoPlex

Sequential object-oriented simPlex

IsElement< T > Class Template Reference

Elements for IsLists.Class IsElement allows to easily construct list elements for an intrusive single linked list IsList out of a template class T. It adds a next pointer to each element. An instance of IdElement<T> a can be used just like an instance of T itself, except that method next() has been added (thereby overriding any method next() defined in T). More...

#include <islist.h>

Public Member Functions

Successor
IsElement< T > *& next ()
 
IsElement< T > * next () const
 returns the next element in the IsList. More...
 
Constructors / destructors
 IsElement ()
 default constructor. More...
 
 IsElement (const T &old)
 
 IsElement (const IsElement< T > &old)
 copy constructor. More...
 

Protected Attributes

Data
IsElement< T > * the_next
 pointer to next element in the IsList. More...
 

Detailed Description

template<class T>
class soplex::IsElement< T >

Elements for IsLists.

Class IsElement allows to easily construct list elements for an intrusive single linked list IsList out of a template class T. It adds a next pointer to each element. An instance of IdElement<T> a can be used just like an instance of T itself, except that method next() has been added (thereby overriding any method next() defined in T).

Definition at line 44 of file islist.h.

Constructor & Destructor Documentation

◆ IsElement() [1/3]

IsElement ( )

default constructor.

Definition at line 76 of file islist.h.

◆ IsElement() [2/3]

IsElement ( const T &  old)
explicit

Definition at line 81 of file islist.h.

◆ IsElement() [3/3]

IsElement ( const IsElement< T > &  old)

copy constructor.

Only the element itself is copied, while the link to the next list element is set to a zero pointer.

Definition at line 90 of file islist.h.

Member Function Documentation

◆ next() [1/2]

◆ next() [2/2]

IsElement<T>* next ( ) const

returns the next element in the IsList.

Definition at line 65 of file islist.h.

References IsElement< T >::the_next.

Member Data Documentation

◆ the_next

IsElement<T>* the_next
protected

pointer to next element in the IsList.

Definition at line 51 of file islist.h.

Referenced by IsElement< T >::next().