Graphics::AssetList Class Reference

#include <Asset.h>

Inheritance diagram for Graphics::AssetList:
Collaboration diagram for Graphics::AssetList:

Public Member Functions

Assetfind (AssetID id)
 
const Assetfind (AssetID id) const
 
Assetfind (AssetType type, AssetID id)
 
const Assetfind (AssetType type, AssetID id) const
 
template<typename T >
T * find (AssetID id)
 
template<typename T >
const T * find (AssetID id) const
 
void store (Asset *asset)
 
void store (AssetID id, Pen pen)
 
- Public Member Functions inherited from OwnedLinkedObjectListTemplate< Asset >
 OwnedLinkedObjectListTemplate ()=default
 
 OwnedLinkedObjectListTemplate (const OwnedLinkedObjectListTemplate &other)=delete
 
OwnedLinkedObjectListTemplateoperator= (const OwnedLinkedObjectListTemplate &other)=delete
 
 ~OwnedLinkedObjectListTemplate ()
 
bool remove (Asset *object)
 
void clear ()
 
- Public Member Functions inherited from LinkedObjectListTemplate< ObjectType >
 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

- Public Types inherited from LinkedObjectListTemplate< ObjectType >
using Iterator = typename LinkedObjectTemplate< ObjectType >::template IteratorTemplate< ObjectType, ObjectType *, ObjectType & >
 
using ConstIterator = typename LinkedObjectTemplate< ObjectType >::template IteratorTemplate< const ObjectType, const ObjectType *, const ObjectType & >
 
- Protected Attributes inherited from LinkedObjectList
LinkedObjectmHead {nullptr}
 

Member Function Documentation

◆ find() [1/6]

Asset* Graphics::AssetList::find ( AssetID  id)
inline

◆ find() [2/6]

template<typename T >
T* Graphics::AssetList::find ( AssetID  id)
inline

◆ find() [3/6]

const Asset* Graphics::AssetList::find ( AssetID  id) const
inline

◆ find() [4/6]

template<typename T >
const T* Graphics::AssetList::find ( AssetID  id) const
inline

◆ find() [5/6]

Asset* Graphics::AssetList::find ( AssetType  type,
AssetID  id 
)

◆ find() [6/6]

const Asset* Graphics::AssetList::find ( AssetType  type,
AssetID  id 
) const
inline

◆ store() [1/2]

void Graphics::AssetList::store ( Asset asset)

◆ store() [2/2]

void Graphics::AssetList::store ( AssetID  id,
Pen  pen 
)
inline

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