Skip to content
Snippets Groups Projects
Commit 10f6593f authored by Dmitri Naumov's avatar Dmitri Naumov Committed by Dmitrij Naumov
Browse files

[ML] Const iterator access to mesh's elements.

parent eaeaba5a
No related branches found
No related tags found
No related merge requests found
...@@ -91,6 +91,18 @@ public: ...@@ -91,6 +91,18 @@ public:
/// Get the element-vector for the mesh. /// Get the element-vector for the mesh.
std::vector<Element*> const& getElements() const { return _elements; } std::vector<Element*> const& getElements() const { return _elements; }
/// Const iterator access to the elements.
std::vector<Element*>::const_iterator elementsBegin() const
{
return _elements.cbegin();
}
/// Const iterator access to the elements.
std::vector<Element*>::const_iterator elementsEnd() const
{
return _elements.cend();
}
/// Resets the IDs of all mesh-elements to their position in the element vector /// Resets the IDs of all mesh-elements to their position in the element vector
void resetElementIDs(); void resetElementIDs();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment