Skip to content
Snippets Groups Projects
Commit 270fdba3 authored by Tom Fischer's avatar Tom Fischer
Browse files

[ML] Docu in class mesh: addProperties() / getProperties().

parent 3f28046f
No related branches found
No related tags found
No related merge requests found
...@@ -127,6 +127,7 @@ public: ...@@ -127,6 +127,7 @@ public:
/// Return true if the mesh has any nonlinear nodes /// Return true if the mesh has any nonlinear nodes
bool isNonlinear() const { return (getNNodes() != getNBaseNodes()); } bool isNonlinear() const { return (getNNodes() != getNBaseNodes()); }
/// Method to get a vector of property values.
template <typename T> template <typename T>
boost::optional<std::vector<T> const&> boost::optional<std::vector<T> const&>
getProperty(std::string const& name) const getProperty(std::string const& name) const
...@@ -148,6 +149,13 @@ public: ...@@ -148,6 +149,13 @@ public:
} }
} }
/// Method to store a vector of property values assigned to a property name.
/// Since the implementation makes no assumption about the number of data
/// items stored within the vector, it is possible either to use a small
/// number of properties where each particular property can be assigned to
/// several mesh items. In contrast to this it is possible to have a
/// separate value for each mesh item.
/// The user has to ensure the correct usage of the vector later on.
template <typename T> template <typename T>
void addProperty(std::string const& name, std::vector<T> const& property) void addProperty(std::string const& name, std::vector<T> const& property)
{ {
......
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