stmm-games-doc  0.32.0
Public Member Functions | List of all members
stmg::XYBuffer< T > Class Template Reference
Inheritance diagram for stmg::XYBuffer< T >:
Inheritance graph
[legend]

Public Member Functions

 XYBuffer (NSize oWH) noexcept
 Constructor. More...
 
 XYBuffer (NSize oWH, const T &oT) noexcept
 Constructor. More...
 
void resize (NSize oWH) noexcept
 
void resize (NSize oWH, const T &oT) noexcept
 
int32_t getW () const noexcept
 
int32_t getH () const noexcept
 
NSize getSize () const noexcept
 
const T & get (NPoint oXY) const noexcept
 
T & get (NPoint oXY) noexcept
 
void set (NPoint oXY, const T &oT) noexcept
 
void setAll (const T &oT) noexcept
 
void dump (int32_t nIndentSpaces) const noexcept
 
void dump () const noexcept
 

Constructor & Destructor Documentation

◆ XYBuffer() [1/2]

template<class T >
stmg::XYBuffer< T >::XYBuffer ( NSize  oWH)
explicitnoexcept

Constructor.

T must be default constructible.

Parameters
oWHThe size of the buffer. Must be positive.

◆ XYBuffer() [2/2]

template<class T>
stmg::XYBuffer< T >::XYBuffer ( NSize  oWH,
const T &  oT 
)
noexcept

Constructor.

T must be copy constructible.

Parameters
oWHThe size of the buffer. Must be positive.
oTThe value with which the buffer is filled.

Member Function Documentation

◆ dump() [1/2]

template<class T >
void stmg::XYBuffer< T >::dump ( int32_t  nIndentSpaces) const
noexcept

◆ dump() [2/2]

template<class T >
void stmg::XYBuffer< T >::dump ( ) const
noexcept

◆ get() [1/2]

template<class T >
const T & stmg::XYBuffer< T >::get ( NPoint  oXY) const
noexcept

◆ get() [2/2]

template<class T >
T & stmg::XYBuffer< T >::get ( NPoint  oXY)
noexcept

◆ getH()

template<class T>
int32_t stmg::XYBuffer< T >::getH ( ) const
inlinenoexcept

◆ getSize()

template<class T>
NSize stmg::XYBuffer< T >::getSize ( ) const
inlinenoexcept

◆ getW()

template<class T>
int32_t stmg::XYBuffer< T >::getW ( ) const
inlinenoexcept

◆ resize() [1/2]

template<class T >
void stmg::XYBuffer< T >::resize ( NSize  oWH)
noexcept

◆ resize() [2/2]

template<class T>
void stmg::XYBuffer< T >::resize ( NSize  oWH,
const T &  oT 
)
noexcept

◆ set()

template<class T>
void stmg::XYBuffer< T >::set ( NPoint  oXY,
const T &  oT 
)
noexcept

◆ setAll()

template<class T>
void stmg::XYBuffer< T >::setAll ( const T &  oT)
noexcept