namespace alps {
template <class UnitCell=EmptyUnitCell, class Offset=typename std::vector<int> >
class simple_cell {
public:
typedef UnitCell unit_cell_type;
typedef Offset offset_type;
typedef typename lattice::dimensional_traits<UnitCell>::dimension_type dimension_type;
simple_cell(const unit_cell_type& u, const offset_type& o);
const offset_type& offset() const;
dimension_type dimension();
};
}
typedefs for the template parameters.Type definitions typedef UnitCell unit_cell_type; typedef Offset offset_type;
the type for the dimension of the cell.typedef typename lattice::dimensional_traits<UnitCell>::dimension_type dimension_type;
the constructor takes the unit cell (to obtain the dimension of the cell), and an offset.simple_cell(const unit_cell_type& u, const offset_typeamp;& o);
returns the offset of the cell.const offset_type& offset() const;
returns the dimension of the cell.dimension_type dimension();
copyright (c) 1994-2010 by Matthias Troyer
Distributed under the Boost Software License, Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt)