Edge struct is a convenient struct use to store two cell pointers connected by a link/edge. More...

#include <grid.hxx>

Public Member Functions

 Edge (std::shared_ptr< Cell > first, std::shared_ptr< Cell > second)
 
bool operator< (const Edge &a) const
 

Public Attributes

const std::shared_ptr< Cellfirst
 
const std::shared_ptr< Cellsecond
 

Private Member Functions

Edge operator= (Edge &)
 

Detailed Description

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

Edge struct is a convenient struct use to store two cell pointers connected by a link/edge.

Definition at line 81 of file grid.hxx.

Constructor & Destructor Documentation

template<typename CellInfo = CellInfoBase>
huc::Grid< CellInfo >::Edge::Edge ( std::shared_ptr< Cell first,
std::shared_ptr< Cell second 
)
inline

Definition at line 83 of file grid.hxx.

83 : first(first), second(second) {}
const std::shared_ptr< Cell > first
Definition: grid.hxx:85
const std::shared_ptr< Cell > second
Definition: grid.hxx:86

Member Function Documentation

template<typename CellInfo = CellInfoBase>
bool huc::Grid< CellInfo >::Edge::operator< ( const Edge a) const
inline

Definition at line 88 of file grid.hxx.

89  { return this->first->x < a.first->x || this->first->y < a.first->y ||
90  this->second->x < a.second->x || this->second->y < a.second->y; }
const std::shared_ptr< Cell > first
Definition: grid.hxx:85
const std::shared_ptr< Cell > second
Definition: grid.hxx:86
template<typename CellInfo = CellInfoBase>
Edge huc::Grid< CellInfo >::Edge::operator= ( Edge )
private

Member Data Documentation

template<typename CellInfo = CellInfoBase>
const std::shared_ptr<Cell> huc::Grid< CellInfo >::Edge::first

Definition at line 85 of file grid.hxx.

template<typename CellInfo = CellInfoBase>
const std::shared_ptr<Cell> huc::Grid< CellInfo >::Edge::second

Definition at line 86 of file grid.hxx.


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