Commit 69cbf02a authored by Pierre Kraemer's avatar Pierre Kraemer

add setAllValues function in AttributeHandler

parent 0d256b2c
......@@ -142,6 +142,11 @@ public:
*/
unsigned int newElt() ;
/**
*
*/
void setAllValues(T& v) ;
/**
* begin of table
* @return the iterator of the begin of container
......
......@@ -141,6 +141,13 @@ inline unsigned int AttributeHandler<T>::newElt()
return idx;
}
template <typename T>
inline void AttributeHandler<T>::setAllValues(T& v)
{
for(unsigned int i = begin(); i != end(); next(i))
m_attrib->operator[](i) = v ;
}
template <typename T>
inline unsigned int AttributeHandler<T>::begin() const
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment