LinkedObject Class Reference

Base virtual class to allow objects to be linked together. More...

#include <LinkedObject.h>

Inheritance diagram for LinkedObject:

Public Member Functions

virtual ~LinkedObject ()
 
virtual LinkedObjectnext () const
 
bool insertAfter (LinkedObject *object)
 
bool operator== (const LinkedObject &other) const
 
bool operator!= (const LinkedObject &other) const
 

Friends

class LinkedObjectList
 

Detailed Description

Base virtual class to allow objects to be linked together.

This can be more efficient than defining a separate list, as each object requires only an additional pointer field for 'next'.

Constructor & Destructor Documentation

◆ ~LinkedObject()

virtual LinkedObject::~LinkedObject ( )
inlinevirtual

Member Function Documentation

◆ insertAfter()

bool LinkedObject::insertAfter ( LinkedObject object)
inline

◆ next()

virtual LinkedObject* LinkedObject::next ( ) const
inlinevirtual

◆ operator!=()

bool LinkedObject::operator!= ( const LinkedObject other) const
inline

◆ operator==()

bool LinkedObject::operator== ( const LinkedObject other) const
inline

Friends And Related Function Documentation

◆ LinkedObjectList

friend class LinkedObjectList
friend

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