Singly-linked list of objects. More...

#include <LinkedObjectList.h>

Inheritance diagram for LinkedObjectList:
Collaboration diagram for LinkedObjectList:

Public Member Functions

 LinkedObjectList ()
 
 LinkedObjectList (LinkedObject *object)
 
bool add (LinkedObject *object)
 
bool add (const LinkedObject *object)
 
bool insert (LinkedObject *object)
 
bool insert (const LinkedObject *object)
 
bool remove (LinkedObject *object)
 
LinkedObjectpop ()
 
void clear ()
 
LinkedObjecthead ()
 
const LinkedObjecthead () const
 
bool isEmpty () const
 

Protected Attributes

LinkedObjectmHead {nullptr}
 

Detailed Description

Singly-linked list of objects.

Note
We don't own the items, just keep references to them

Constructor & Destructor Documentation

◆ LinkedObjectList() [1/2]

LinkedObjectList::LinkedObjectList ( )
inline

◆ LinkedObjectList() [2/2]

LinkedObjectList::LinkedObjectList ( LinkedObject object)
inline

Member Function Documentation

◆ add() [1/2]

bool LinkedObjectList::add ( const LinkedObject object)
inline

◆ add() [2/2]

bool LinkedObjectList::add ( LinkedObject object)

◆ clear()

void LinkedObjectList::clear ( )
inline

◆ head() [1/2]

LinkedObject* LinkedObjectList::head ( )
inline

◆ head() [2/2]

const LinkedObject* LinkedObjectList::head ( ) const
inline

◆ insert() [1/2]

bool LinkedObjectList::insert ( const LinkedObject object)
inline

◆ insert() [2/2]

bool LinkedObjectList::insert ( LinkedObject object)
inline

◆ isEmpty()

bool LinkedObjectList::isEmpty ( ) const
inline

◆ pop()

LinkedObject* LinkedObjectList::pop ( )
inline

◆ remove()

bool LinkedObjectList::remove ( LinkedObject object)

Member Data Documentation

◆ mHead

LinkedObject* LinkedObjectList::mHead {nullptr}
protected

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