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);
void translate(const std::vector< double > &translation)
void add(const Data &data, const Index &index)
Definition: IndexedDataTree.h:355
Definition: Serializable.h:43
std::string serialize(Mode mode) const
Data structure for storing data associated with an index.
bool get(Data &data, const Index &index) const
Definition: IndexedDataTree.h:467
void setCoordinate(const Index &index, const std::vector< double > &coordinate)
Definition: Geometry.h:94
Definition: FileReader.h:50
int getDimensions() const
Definition: Geometry.h:120
Definition: IndexedDataTree.h:45
Physical index.
Definition: Index.h:44
Contains geometric information about a Model.
Definition: Geometry.h:34
Mode
Definition: Serializable.h:47
const std::vector< double > & getCoordinate(const Index &index) const
Definition: Geometry.h:114
Abstract base class for serializable objects.