Commit 90de9842 authored by Sylvain Thery's avatar Sylvain Thery

correction of signature of affectation operator (=)

parent 7d4483cc
......@@ -108,7 +108,7 @@ public:
* affectation operator
* @param ta the table attribute to affect to this
*/
void operator=(const AttributeHandler<T, ORBIT>& ta) ;
AttributeHandler<T, ORBIT>& operator=(const AttributeHandler<T, ORBIT>& ta) ;
/**
* Destructor (empty & virtual)
......@@ -196,7 +196,7 @@ template <typename T>
class VertexAttribute : public AttributeHandler<T,VERTEX>
{
public:
void operator=(const AttributeHandler<T,VERTEX>& ta) { this->AttributeHandler<T,VERTEX>::operator=(ta);}
VertexAttribute<T>& operator=(const AttributeHandler<T,VERTEX>& ta) { this->AttributeHandler<T,VERTEX>::operator=(ta); return *this;}
};
/**
......@@ -206,7 +206,7 @@ template <typename T>
class EdgeAttribute : public AttributeHandler<T,EDGE>
{
public:
void operator=(const AttributeHandler<T,EDGE>& ta) { this->AttributeHandler<T,EDGE>::operator=(ta);}
EdgeAttribute<T>& operator=(const AttributeHandler<T,EDGE>& ta) { this->AttributeHandler<T,EDGE>::operator=(ta); return *this;}
};
/**
......@@ -216,7 +216,7 @@ template <typename T>
class FaceAttribute : public AttributeHandler<T,FACE>
{
public:
void operator=(const AttributeHandler<T,FACE>& ta) { this->AttributeHandler<T,FACE>::operator=(ta);}
FaceAttribute<T>& operator=(const AttributeHandler<T,FACE>& ta) { this->AttributeHandler<T,FACE>::operator=(ta); return *this;}
};
/**
......@@ -226,7 +226,7 @@ template <typename T>
class VolumeAttribute : public AttributeHandler<T,VOLUME>
{
public:
void operator=(const AttributeHandler<T,VOLUME>& ta) { this->AttributeHandler<T,VOLUME>::operator=(ta);}
VolumeAttribute<T>& operator=(const AttributeHandler<T,VOLUME>& ta) { this->AttributeHandler<T,VOLUME>::operator=(ta); return *this;}
};
......
......@@ -77,7 +77,7 @@ AttributeHandler<T, ORBIT>::AttributeHandler(const AttributeHandler<T, ORBIT>& t
}
template <typename T, unsigned int ORBIT>
inline void AttributeHandler<T, ORBIT>::operator=(const AttributeHandler<T, ORBIT>& ta)
inline AttributeHandler<T, ORBIT>& AttributeHandler<T, ORBIT>::operator=(const AttributeHandler<T, ORBIT>& ta)
{
if(valid)
unregisterFromMap() ;
......@@ -86,6 +86,7 @@ inline void AttributeHandler<T, ORBIT>::operator=(const AttributeHandler<T, ORBI
valid = ta.valid ;
if(valid)
registerInMap() ;
return *this;
}
template <typename T, unsigned int ORBIT>
......
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