Go to the documentation of this file.
23 #ifndef COM_DAFER45_TBTK_GEOMETRY
24 #define COM_DAFER45_TBTK_GEOMETRY
28 #include "TBTK/SerializableVector.h"
46 const std::string &serialization,
61 const std::vector<double> &coordinate
79 void translate(
const std::vector<double> &translation);
96 const std::vector<double> &coordinate
99 dimensions = coordinate.size();
102 coordinate.size() == (
unsigned int)dimensions,
103 "Geometry::setCoordinate()",
104 "Incompatible dimensions. A coordinate with dimension '"
105 << dimensions <<
"' has already been added, which is"
106 <<
" incompatible with the current coordinate dimension of '"
107 << coordinate.size() <<
"'.",
111 coordinates.
add(coordinate, index);
117 return coordinates.
get(index);
Definition: IndexedDataTree.h:45
void add(const Data &data, const Index &index)
Definition: IndexedDataTree.h:355
int getDimensions() const
Definition: Geometry.h:120
const std::vector< double > & getCoordinate(const Index &index) const
Definition: Geometry.h:114
Data structure for storing data associated with an index.
Definition: FileReader.h:50
bool get(Data &data, const Index &index) const
Definition: IndexedDataTree.h:467
Definition: Serializable.h:43
Contains geometric information about a Model.
Definition: Geometry.h:34
Abstract base class for serializable objects.
void translate(const std::vector< double > &translation)
void setCoordinate(const Index &index, const std::vector< double > &coordinate)
Definition: Geometry.h:94
std::string serialize(Mode mode) const
Mode
Definition: Serializable.h:47
Physical index.
Definition: Index.h:44