Page MenuHomec4science

fcc_lattice.hh
No OneTemporary

File Metadata

Created
Mon, Jun 3, 17:30

fcc_lattice.hh

/**
* @file fcc_lattice.hh
* @author Till Junge <junge@lsmspc42.epfl.ch>
* @date Fri Apr 13 16:55:43 2012
*
* @brief implementation of fcc lattices
*
* @section LICENSE
*
* <insert lisence here>
*
*/
/* -------------------------------------------------------------------------- */
#ifndef __CADD_MESHER_FCC_LATTICE_CC__
#define __CADD_MESHER_FCC_LATTICE_CC__
#include "common.hh"
#include "point_container.hh"
#include "gsl/gsl_vector.h"
#include "gsl/gsl_matrix.h"
#include "lattice.hh"
template<Uint DIM>
class FccLattice: public Lattice <DIM> {
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
/*! Constructor
* \param constants array of lattice constants in \a x, \a y and \a z
* direction of the lattice
* \param miller matrix of Miller indices (as 1D array of size \a DIM * \a DIM
* ). The rows are the Miller vectors to be aligned with the corresponding
* direction of the global coordinate system. If \a NULL, the identity is
* used.*/
FccLattice(Real * _constants, Real * miller = NULL);
FccLattice(std::vector<Real> & constants_, std::vector<Real> & miller_);
virtual ~FccLattice(){};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public:
virtual Lattice<DIM> * resolveType() const {
return newLattice<DIM>(*this);
}
/// function to print the contain of the class
// virtual void printself(std::ostream & stream, int indent = 0) const;
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private:
void fillBaseAtoms();
};
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
/// standard output stream operator
template<Uint DIM>
inline std::ostream & operator <<(std::ostream & stream, const FccLattice<DIM> & _this)
{
_this.printself(stream);
return stream;
}
#endif /* __CADD_MESHER_FCC_LATTICE_CC__ */

Event Timeline