UPnP::ObjectList< ObjectType > Class Template Reference

Class template for singly-linked list of objects. More...

#include <ObjectList.h>

Inheritance diagram for UPnP::ObjectList< ObjectType >:
Collaboration diagram for UPnP::ObjectList< ObjectType >:

Public Member Functions

ObjectType * head ()
 
const ObjectType * head () const
 
ObjectType::Iterator begin ()
 
ObjectType::Iterator end ()
 
bool isEmpty () const
 
size_t count () const
 
template<typename T >
ObjectType * find (const T &objectType)
 Search list for matching entry. More...
 
ObjectType * find (const ObjectClass &objectClass)
 Search list for matching entry given its class @objectClass Class information for object. More...
 
- Public Member Functions inherited from UPnP::LinkedItemList
bool add (LinkedItem *item)
 
bool add (const LinkedItem *item)
 
bool remove (LinkedItem *item)
 
void clear ()
 
LinkedItemhead ()
 
const LinkedItemhead () const
 
LinkedItemfind (LinkedItem *item)
 
const LinkedItemfind (LinkedItem *item) const
 
bool contains (LinkedItem *item) const
 

Detailed Description

template<typename ObjectType>
class UPnP::ObjectList< ObjectType >

Class template for singly-linked list of objects.

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

Member Function Documentation

◆ begin()

template<typename ObjectType >
ObjectType::Iterator UPnP::ObjectList< ObjectType >::begin ( )
inline

◆ count()

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

◆ end()

template<typename ObjectType >
ObjectType::Iterator UPnP::ObjectList< ObjectType >::end ( )
inline

◆ find() [1/2]

template<typename ObjectType >
ObjectType* UPnP::ObjectList< ObjectType >::find ( const ObjectClass objectClass)
inline

Search list for matching entry given its class @objectClass Class information for object.

Return values
ObjectType*Located definition or nullptr if not found

◆ find() [2/2]

template<typename ObjectType >
template<typename T >
ObjectType* UPnP::ObjectList< ObjectType >::find ( const T &  objectType)
inline

Search list for matching entry.

Template Parameters
Urnor String
Return values
ObjectType*Located definition or nullptr if not found

◆ head() [1/2]

template<typename ObjectType >
ObjectType* UPnP::ObjectList< ObjectType >::head ( )
inline

◆ head() [2/2]

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

◆ isEmpty()

template<typename ObjectType >
bool UPnP::ObjectList< ObjectType >::isEmpty ( ) const
inline

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