Graphics::ItemList< T > Class Template Reference

Fixed list of types. More...

#include <Renderer.h>

Public Member Functions

 ItemList (uint8_t capacity)
 
void add (T value)
 
T * get ()
 
T * next ()
 
void reset ()
 
 operator bool () const
 

Detailed Description

template<typename T>
class Graphics::ItemList< T >

Fixed list of types.

Rendering algorithms create small sets of points, lines or rectangles. Buffering these in a small list simplifies logic considerably.

Constructor & Destructor Documentation

◆ ItemList()

template<typename T >
Graphics::ItemList< T >::ItemList ( uint8_t  capacity)
inline

Member Function Documentation

◆ add()

template<typename T >
void Graphics::ItemList< T >::add ( value)
inline

◆ get()

template<typename T >
T* Graphics::ItemList< T >::get ( )
inline

◆ next()

template<typename T >
T* Graphics::ItemList< T >::next ( )
inline

◆ operator bool()

template<typename T >
Graphics::ItemList< T >::operator bool ( ) const
inlineexplicit

◆ reset()

template<typename T >
void Graphics::ItemList< T >::reset ( )
inline

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