Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cGridArray< TYPE, TYPE_ARG > Class Template Reference

#include <cGridArray.h>

Public Member Functions

void SetSize (int cx, int cy)
 
void Scroll (int dx, int dy)
 
TYPE_ARG GetAt (int x, int y)
 
void SetAt (int x, int y, TYPE_ARG arg)
 

Detailed Description

template<class TYPE, class TYPE_ARG>
class GrayLib::cGridArray< TYPE, TYPE_ARG >

This is a Variable sized (sparse) 2d array It supplies functions to allow scrolling in any direction.

Member Function Documentation

◆ GetAt()

template<class TYPE , class TYPE_ARG >
TYPE_ARG GrayLib::cGridArray< TYPE, TYPE_ARG >::GetAt ( int  x,
int  y 
)
inline

◆ Scroll()

template<class TYPE , class TYPE_ARG >
void GrayLib::cGridArray< TYPE, TYPE_ARG >::Scroll ( int  dx,
int  dy 
)
inline

destructive Scroll the elements in the grid.

Note
Preferably these are pointers to actual elements.

◆ SetAt()

template<class TYPE , class TYPE_ARG >
void GrayLib::cGridArray< TYPE, TYPE_ARG >::SetAt ( int  x,
int  y,
TYPE_ARG  arg 
)
inline

◆ SetSize()

template<class TYPE , class TYPE_ARG >
void GrayLib::cGridArray< TYPE, TYPE_ARG >::SetSize ( int  cx,
int  cy 
)
inline

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