SyTen
syten::GridImpl::BondGrid< T > Class Template Reference

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...
 
BondGridoperator= (BondGrid &&)=default
 Move assignment operator is defaulted. More...
 
BondGridoperator= (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...
 

Detailed Description

template<typename T>
class syten::GridImpl::BondGrid< T >

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.


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