LinkedObjectListTemplate< ObjectType > Class Template Reference

#include <LinkedObjectList.h>

Inheritance diagram for LinkedObjectListTemplate< ObjectType >:
Collaboration diagram for LinkedObjectListTemplate< ObjectType >:

Public Types

using Iterator = typename LinkedObjectTemplate< ObjectType >::template IteratorTemplate< ObjectType, ObjectType *, ObjectType & >
 
using ConstIterator = typename LinkedObjectTemplate< ObjectType >::template IteratorTemplate< const ObjectType, const ObjectType *, const ObjectType & >
 

Public Member Functions

 LinkedObjectListTemplate ()=default
 
 LinkedObjectListTemplate (ObjectType *object)
 
ObjectType * head ()
 
const ObjectType * head () const
 
Iterator begin ()
 
Iterator end ()
 
ConstIterator begin () const
 
ConstIterator end () const
 
bool add (ObjectType *object)
 
bool add (const ObjectType *object)
 
bool insert (ObjectType *object)
 
bool insert (const ObjectType *object)
 
ObjectType * pop ()
 
size_t count () const
 
bool contains (const ObjectType &object) const
 
- Public Member Functions inherited from LinkedObjectList
 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
 

Additional Inherited Members

- Protected Attributes inherited from LinkedObjectList
LinkedObjectmHead {nullptr}
 

Member Typedef Documentation

◆ ConstIterator

template<typename ObjectType >
using LinkedObjectListTemplate< ObjectType >::ConstIterator = typename LinkedObjectTemplate<ObjectType>::template IteratorTemplate<const ObjectType, const ObjectType*, const ObjectType&>

◆ Iterator

template<typename ObjectType >
using LinkedObjectListTemplate< ObjectType >::Iterator = typename LinkedObjectTemplate<ObjectType>::template IteratorTemplate<ObjectType, ObjectType*, ObjectType&>

Constructor & Destructor Documentation

◆ LinkedObjectListTemplate() [1/2]

template<typename ObjectType >
LinkedObjectListTemplate< ObjectType >::LinkedObjectListTemplate ( )
default

◆ LinkedObjectListTemplate() [2/2]

template<typename ObjectType >
LinkedObjectListTemplate< ObjectType >::LinkedObjectListTemplate ( ObjectType *  object)
inline

Member Function Documentation

◆ add() [1/2]

template<typename ObjectType >
bool LinkedObjectListTemplate< ObjectType >::add ( const ObjectType *  object)
inline

◆ add() [2/2]

template<typename ObjectType >
bool LinkedObjectListTemplate< ObjectType >::add ( ObjectType *  object)
inline

◆ begin() [1/2]

template<typename ObjectType >
Iterator LinkedObjectListTemplate< ObjectType >::begin ( )
inline

◆ begin() [2/2]

template<typename ObjectType >
ConstIterator LinkedObjectListTemplate< ObjectType >::begin ( ) const
inline

◆ contains()

template<typename ObjectType >
bool LinkedObjectListTemplate< ObjectType >::contains ( const ObjectType &  object) const
inline

◆ count()

template<typename ObjectType >
size_t LinkedObjectListTemplate< ObjectType >::count ( ) const
inline

◆ end() [1/2]

template<typename ObjectType >
Iterator LinkedObjectListTemplate< ObjectType >::end ( )
inline

◆ end() [2/2]

template<typename ObjectType >
ConstIterator LinkedObjectListTemplate< ObjectType >::end ( ) const
inline

◆ head() [1/2]

template<typename ObjectType >
ObjectType* LinkedObjectListTemplate< ObjectType >::head ( )
inline

◆ head() [2/2]

template<typename ObjectType >
const ObjectType* LinkedObjectListTemplate< ObjectType >::head ( ) const
inline

◆ insert() [1/2]

template<typename ObjectType >
bool LinkedObjectListTemplate< ObjectType >::insert ( const ObjectType *  object)
inline

◆ insert() [2/2]

template<typename ObjectType >
bool LinkedObjectListTemplate< ObjectType >::insert ( ObjectType *  object)
inline

◆ pop()

template<typename ObjectType >
ObjectType* LinkedObjectListTemplate< ObjectType >::pop ( )
inline

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