Skip to content
Snippets Groups Projects
Commit d11697c5 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

add multicomponent version of PropertyVector<T*>::initPropertyValue()

parent 706b8406
No related branches found
No related tags found
No related merge requests found
......@@ -161,6 +161,14 @@ public:
_values[group_id] = p;
}
void initPropertyValue(std::size_t group_id, std::vector<T> const& values)
{
T* p = new T[values.size()];
for (unsigned i=0; i<values.size(); i++)
p[i] = values[i];
_values[group_id] = p;
}
std::size_t getNumberOfTuples() const
{
return std::vector<std::size_t>::size();
......
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