A two-dimensional storage class with two backing grids. More...
#include <grid.h>
Inheritance diagram for syten::GridImpl::BondGrid< T >:Public Member Functions | |
| BondGrid ()=default | |
| Default ctor. More... | |
| BondGrid (BondGrid &&)=default | |
| Move ctor. More... | |
| BondGrid (BondGrid const &)=default | |
| Copy ctor. More... | |
| BondGrid (int w, int d, T def=T()) | |
| Standard ctor. More... | |
| T & | operator() (Coord a, Coord b) |
Access the element between coordinates a and b. More... | |
| T const & | operator() (Coord const &a, Coord const &b) const |
Access the element between coordinates a and b. More... | |
| BondGrid & | operator= (BondGrid &&)=default |
| Move assignment operator is defaulted. More... | |
| BondGrid & | operator= (BondGrid const &)=default |
| Copy assignment operator is defaulted. More... | |
| template<typename Archive > | |
| void | serialize (Archive &ar, const unsigned int) |
| Boost serialisation. More... | |
Private Attributes | |
| int | depth |
| depth of the unit cell More... | |
| Grid< T > | horz_storage |
| horizontal bonds storage More... | |
| Grid< T > | vert_storage |
| vertical bonds storage More... | |
| int | width |
| width of the unit cell More... | |
A two-dimensional storage class with two backing grids.
The objects are centered on the vertices of the 2D square lattice. Accesses outside are mapped into the constructed range.