Fission FSN
Loading...
Searching...
No Matches
fsGrid< fsTCell > Class Template Reference

#include <fsGrid.h>

Public Member Functions

fsBool onGrid (fsPoint const &pPos) const
fsPoint worlddLocation (fsPoint const &pGridPos) const
fsPoint gridLocation (fsPoint const &pPos) const
fsPoint halfCell () const
fsTCell & getCell (fsS32 pColumn, fsS32 pRow)
fsPoint const & cellDimensionsGet () const
fsPoint cellBorderedDimensionsGet () const
fsS32 columnsGet () const
fsS32 rowsGet () const
fsS32 rowStrideGet () const
fsS32 columnStrideGet () const
fsPoint const & originGet () const
std::vector< fsTCell >::iterator begin ()
std::vector< fsTCell >::iterator end ()
std::vector< fsTCell >::reverse_iterator rbegin ()
std::vector< fsTCell >::reverse_iterator rend ()
void drop (std::function< void(fsTCell, fsTCell)> pAction)
void swap (fsTCell pLHS, fsTCell pRHS)
std::vector< fsTCell >::iterator findIf (typename std::vector< fsTCell >::iterator pBegin, typename std::vector< fsTCell >::iterator pEnd, std::function< fsBool(fsTCell)> pPredicate)
template<typename FwdIt>
void forEachRow (FwdIt pBegin, FwdIt pEnd, std::function< void(fsTCell)> pCellAction, std::function< void()> pRowAction)
template<typename FwdIt>
void forEachColumn (FwdIt pBegin, FwdIt pEnd, std::function< void(fsTCell)> pCellAction, std::function< void()> pColumnAction)
template<typename FwdIt>
void forEachDescendingDiagonal (FwdIt pBegin, FwdIt pEnd, std::function< void(fsTCell)> pCellAction, std::function< void()> pDiagonalAction)
template<typename FwdIt>
void forEachAscendingDiagonal (FwdIt pBegin, FwdIt pEnd, std::function< void(fsTCell)> pCellAction, std::function< void()> pDiagonalAction)
void forEach (fsPoint const &pBegin, fsPoint const &pEnd, std::function< void(fsTCell &)> pCellOperation)
void forEach (typename std::vector< fsTCell >::iterator pBegin, typename std::vector< fsTCell >::iterator pEnd, std::function< void(fsTCell &)> pCellOperation)
void generate (std::function< fsTCell const(fsS32, fsS32)> pCellCreate)
void init (fsPoint const &pOrigin, fsPoint const &pDimensions, fsPoint const &pCellDimensions, fsPoint const &pCellBorder)
 fsGrid ()=default
 ~fsGrid ()=default

Constructor & Destructor Documentation

◆ fsGrid()

template<typename fsTCell>
fsGrid< fsTCell >::fsGrid ( )
default

◆ ~fsGrid()

template<typename fsTCell>
fsGrid< fsTCell >::~fsGrid ( )
default

Member Function Documentation

◆ begin()

template<typename fsTCell>
std::vector< fsTCell >::iterator fsGrid< fsTCell >::begin ( )
inline

◆ cellBorderedDimensionsGet()

template<typename fsTCell>
fsPoint fsGrid< fsTCell >::cellBorderedDimensionsGet ( ) const
inline

◆ cellDimensionsGet()

template<typename fsTCell>
fsPoint const & fsGrid< fsTCell >::cellDimensionsGet ( ) const
inline

◆ columnsGet()

template<typename fsTCell>
fsS32 fsGrid< fsTCell >::columnsGet ( ) const
inline

◆ columnStrideGet()

template<typename fsTCell>
fsS32 fsGrid< fsTCell >::columnStrideGet ( ) const
inline

◆ drop()

template<typename fsTCell>
void fsGrid< fsTCell >::drop ( std::function< void(fsTCell, fsTCell)> pAction)

◆ end()

template<typename fsTCell>
std::vector< fsTCell >::iterator fsGrid< fsTCell >::end ( )
inline

◆ findIf()

template<typename fsTCell>
std::vector< fsTCell >::iterator fsGrid< fsTCell >::findIf ( typename std::vector< fsTCell >::iterator pBegin,
typename std::vector< fsTCell >::iterator pEnd,
std::function< fsBool(fsTCell)> pPredicate )

◆ forEach() [1/2]

template<typename fsTCell>
void fsGrid< fsTCell >::forEach ( fsPoint const & pBegin,
fsPoint const & pEnd,
std::function< void(fsTCell &)> pCellOperation )

◆ forEach() [2/2]

template<typename fsTCell>
void fsGrid< fsTCell >::forEach ( typename std::vector< fsTCell >::iterator pBegin,
typename std::vector< fsTCell >::iterator pEnd,
std::function< void(fsTCell &)> pCellOperation )

◆ forEachAscendingDiagonal()

template<typename fsTCell>
template<typename FwdIt>
void fsGrid< fsTCell >::forEachAscendingDiagonal ( FwdIt pBegin,
FwdIt pEnd,
std::function< void(fsTCell)> pCellAction,
std::function< void()> pDiagonalAction )

◆ forEachColumn()

template<typename fsTCell>
template<typename FwdIt>
void fsGrid< fsTCell >::forEachColumn ( FwdIt pBegin,
FwdIt pEnd,
std::function< void(fsTCell)> pCellAction,
std::function< void()> pColumnAction )

◆ forEachDescendingDiagonal()

template<typename fsTCell>
template<typename FwdIt>
void fsGrid< fsTCell >::forEachDescendingDiagonal ( FwdIt pBegin,
FwdIt pEnd,
std::function< void(fsTCell)> pCellAction,
std::function< void()> pDiagonalAction )

◆ forEachRow()

template<typename fsTCell>
template<typename FwdIt>
void fsGrid< fsTCell >::forEachRow ( FwdIt pBegin,
FwdIt pEnd,
std::function< void(fsTCell)> pCellAction,
std::function< void()> pRowAction )

◆ generate()

template<typename fsTCell>
void fsGrid< fsTCell >::generate ( std::function< fsTCell const(fsS32, fsS32)> pCellCreate)

◆ getCell()

template<typename fsTCell>
fsTCell & fsGrid< fsTCell >::getCell ( fsS32 pColumn,
fsS32 pRow )

◆ gridLocation()

template<typename fsTCell>
fsPoint fsGrid< fsTCell >::gridLocation ( fsPoint const & pPos) const
inline

◆ halfCell()

template<typename fsTCell>
fsPoint fsGrid< fsTCell >::halfCell ( ) const
inline

◆ init()

template<typename fsTCell>
void fsGrid< fsTCell >::init ( fsPoint const & pOrigin,
fsPoint const & pDimensions,
fsPoint const & pCellDimensions,
fsPoint const & pCellBorder )

◆ onGrid()

template<typename fsTCell>
fsBool fsGrid< fsTCell >::onGrid ( fsPoint const & pPos) const
inline

◆ originGet()

template<typename fsTCell>
fsPoint const & fsGrid< fsTCell >::originGet ( ) const
inline

◆ rbegin()

template<typename fsTCell>
std::vector< fsTCell >::reverse_iterator fsGrid< fsTCell >::rbegin ( )
inline

◆ rend()

template<typename fsTCell>
std::vector< fsTCell >::reverse_iterator fsGrid< fsTCell >::rend ( )
inline

◆ rowsGet()

template<typename fsTCell>
fsS32 fsGrid< fsTCell >::rowsGet ( ) const
inline

◆ rowStrideGet()

template<typename fsTCell>
fsS32 fsGrid< fsTCell >::rowStrideGet ( ) const
inline

◆ swap()

template<typename fsTCell>
void fsGrid< fsTCell >::swap ( fsTCell pLHS,
fsTCell pRHS )

◆ worlddLocation()

template<typename fsTCell>
fsPoint fsGrid< fsTCell >::worlddLocation ( fsPoint const & pGridPos) const
inline

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