16 #ifndef SURGSIM_DATASTRUCTURES_MESHELEMENT_H
17 #define SURGSIM_DATASTRUCTURES_MESHELEMENT_H
25 namespace DataStructures
43 template <
size_t N,
class Data>
50 verticesId(verticesId),
59 verticesId(verticesId),
64 typedef std::array<size_t, N>
IdType;
88 return !((*this) == element);
98 #endif // SURGSIM_DATASTRUCTURES_MESHELEMENT_H
Definition: DriveElementFromInputBehavior.cpp:27
MeshElement(const std::array< size_t, N > &verticesId)
Constructor where the Data is constructed by its default constructor.
Definition: MeshElement.h:58
std::array< size_t, N > IdType
Definition: MeshElement.h:64
bool operator!=(const MeshElement< N, Data > &element) const
Compare the element with another one (inequality)
Definition: MeshElement.h:86
IdType verticesId
Element vertices.
Definition: MeshElement.h:67
MeshElement(const std::array< size_t, N > &verticesId, const Data &data)
Constructor.
Definition: MeshElement.h:49
Element structure for meshes.
Definition: MeshElement.h:44
Data data
Extra element data.
Definition: MeshElement.h:70
bool operator==(const MeshElement< N, Data > &element) const
Compare the element with another one (equality)
Definition: MeshElement.h:78
bool isValid
Is this a valid element.
Definition: MeshElement.h:73