This example shows how to instantiate lattice definitions.
#include "latbuilder/LatDef.h"
#include "latbuilder/SizeParam.h"
#include "latbuilder/TextStream.h"
#include <iostream>
using TextStream::operator<<;
template <LatType L>
{
std::cout <<
" dimension: " << def.
dimension() << std::endl;
std::cout <<
" size parameter: " << def.
sizeParam() << std::endl;
std::cout <<
" generating vector: " << def.
gen() << std::endl;
std::cout << " definition: " << def << std::endl;
}
int main()
{
std::cout << "ordinary lattice:" << std::endl;
printLatDef(ordinary);
std::cout << "embedded lattice:" << std::endl;
printLatDef(embedded);
return 0;
}