Multi-robot Playground
Matrix< T > Class Template Reference

#include <Common.h>

Collaboration diagram for Matrix< T >:

Public Member Functions

 Matrix (int width, int height)
 
 Matrix (const Vec2i &size)
 
 Matrix (const Matrix &m)
 
void operator= (const Matrix &m)
 
void CopyRegion (std::vector< Vec2i > &rValidAreas, Matrix< T > &pOther, const Vec2i &start, const Vec2i &end)
 
bool CheckAny (const Vec2i &rStart, const Vec2i &rEnd, const int &rVal)
 
Matrix_Proxy< T > operator[] (int y)
 
const Matrix_Proxy< T > operator[] (int y) const
 
 ~Matrix ()
 
void setSize (const Vec2i &size)
 
bool isInBounds (const Vec2i &rCoord)
 
void clear (const T &v)
 

Public Attributes

T * array
 
Vec2i size
 

Constructor & Destructor Documentation

◆ Matrix() [1/3]

template<typename T >
Matrix< T >::Matrix ( int  width,
int  height 
)
inline

◆ Matrix() [2/3]

template<typename T >
Matrix< T >::Matrix ( const Vec2i size)
inline

◆ Matrix() [3/3]

template<typename T >
Matrix< T >::Matrix ( const Matrix< T > &  m)
inline

◆ ~Matrix()

template<typename T >
Matrix< T >::~Matrix ( )
inline

Member Function Documentation

◆ CheckAny()

template<typename T >
bool Matrix< T >::CheckAny ( const Vec2i rStart,
const Vec2i rEnd,
const int &  rVal 
)
inline

◆ clear()

template<typename T >
void Matrix< T >::clear ( const T &  v)
inline

◆ CopyRegion()

template<typename T >
void Matrix< T >::CopyRegion ( std::vector< Vec2i > &  rValidAreas,
Matrix< T > &  pOther,
const Vec2i start,
const Vec2i end 
)
inline

◆ isInBounds()

template<typename T >
bool Matrix< T >::isInBounds ( const Vec2i rCoord)
inline

◆ operator=()

template<typename T >
void Matrix< T >::operator= ( const Matrix< T > &  m)
inline

◆ operator[]() [1/2]

template<typename T >
Matrix_Proxy<T> Matrix< T >::operator[] ( int  y)
inline

◆ operator[]() [2/2]

template<typename T >
const Matrix_Proxy<T> Matrix< T >::operator[] ( int  y) const
inline

◆ setSize()

template<typename T >
void Matrix< T >::setSize ( const Vec2i size)
inline

Member Data Documentation

◆ array

template<typename T >
T* Matrix< T >::array

◆ size

template<typename T >
Vec2i Matrix< T >::size

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