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

[MeL] Getter for meta information of PropertyVector.

parent 71570d29
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,12 @@ template <typename PROP_VAL_TYPE>
class PropertyVector : public std::vector<PROP_VAL_TYPE>
{
friend class Properties;
public:
std::size_t getTupleSize() const { return _tuple_size; }
MeshItemType getMeshItemType() const { return _mesh_item_type; }
std::string const& getPropertyName() const { return _property_name; }
protected:
/// @brief The constructor taking meta information for the data.
/// @param property_name a string describing the property
......@@ -90,6 +96,10 @@ public:
return (*static_cast<std::vector<T*> const*>(this))[_item2group_mapping[id]];
}
std::size_t getTupleSize() const { return _tuple_size; }
MeshItemType getMeshItemType() const { return _mesh_item_type; }
std::string const& getPropertyName() const { return _property_name; }
protected:
/// @brief The constructor taking meta information for the data.
/// @param n_prop_groups number of different property values
......
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