#include <grid.hxx>

Public Member Functions

 Cell (uint32_t x, uint32_t y)
 

Public Attributes

const uint32_t x
 
const uint32_t y
 
std::set< std::weak_ptr< Cell >, std::owner_less< std::weak_ptr< Cell > > > connectedCells
 
CellInfo info
 

Private Member Functions

Cell operator= (Cell &)
 

Detailed Description

template<typename CellInfo = CellInfoBase>
class huc::Grid< CellInfo >::Cell

Cell struct is a convenient struct use to represent a 2D cell for a grid (index position). It handles a set of its connection to other nodes and extra information passed as template parameter.

Definition at line 65 of file grid.hxx.

Constructor & Destructor Documentation

template<typename CellInfo = CellInfoBase>
huc::Grid< CellInfo >::Cell::Cell ( uint32_t  x,
uint32_t  y 
)
inline

Definition at line 67 of file grid.hxx.

67 : x(x), y(y) {}
const uint32_t y
Definition: grid.hxx:70
const uint32_t x
Definition: grid.hxx:69

Member Function Documentation

template<typename CellInfo = CellInfoBase>
Cell huc::Grid< CellInfo >::Cell::operator= ( Cell )
private

Member Data Documentation

template<typename CellInfo = CellInfoBase>
std::set<std::weak_ptr<Cell>, std::owner_less<std::weak_ptr<Cell> > > huc::Grid< CellInfo >::Cell::connectedCells

Definition at line 73 of file grid.hxx.

template<typename CellInfo = CellInfoBase>
CellInfo huc::Grid< CellInfo >::Cell::info

Definition at line 74 of file grid.hxx.

template<typename CellInfo = CellInfoBase>
const uint32_t huc::Grid< CellInfo >::Cell::x

Definition at line 69 of file grid.hxx.

template<typename CellInfo = CellInfoBase>
const uint32_t huc::Grid< CellInfo >::Cell::y

Definition at line 70 of file grid.hxx.


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