PUMA Library Reference Manual
Puma::ListElement Class Referenceabstract

#include <Puma/ListElement.h>

+ Inheritance diagram for Puma::ListElement:

Description

Double-linked list element type to be used as elements for class List. To be derived for concrete list elements.

Public Member Functions

 ListElement ()
 Constructor. More...
 
virtual ~ListElement ()
 Destructor. More...
 
Listbelonging_to () const
 Get the list this element belongs to. More...
 
virtual ListElementduplicate ()=0
 Duplicate this list element. More...
 

Friends

class List
 

Constructor & Destructor Documentation

◆ ListElement()

Puma::ListElement::ListElement ( )
inline

Constructor.

◆ ~ListElement()

virtual Puma::ListElement::~ListElement ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ belonging_to()

List* Puma::ListElement::belonging_to ( ) const
inline

Get the list this element belongs to.

Returns
A pointer to the list, or NULL if not belonging to any list.

◆ duplicate()

Friends And Related Function Documentation

◆ List

friend class List
friend