Commit f0c76ffa authored by Sylvain Thery's avatar Sylvain Thery

restore EMBNULL testing

parent 02625daf
......@@ -137,8 +137,8 @@ inline T& AttributeHandler<T, ORBIT>::operator[](Dart d)
assert(valid || !"Invalid AttributeHandler") ;
unsigned int a = m_map->getEmbedding<ORBIT>(d) ;
// if (a == EMBNULL)
// a = m_map->setOrbitEmbeddingOnNewCell<ORBIT>(d) ;
if (a == EMBNULL)
a = m_map->setOrbitEmbeddingOnNewCell<ORBIT>(d) ;
return m_attrib->operator[](a) ;
}
......
......@@ -132,8 +132,8 @@ public:
assert(m_markVector != NULL);
unsigned int a = m_map.getEmbedding<CELL>(d) ;
// if (a == EMBNULL)
// a = m_map.setOrbitEmbeddingOnNewCell<CELL>(d) ;
if (a == EMBNULL)
a = m_map.setOrbitEmbeddingOnNewCell<CELL>(d) ;
m_markVector->operator[](a).setMark(m_mark) ;
}
......@@ -146,8 +146,8 @@ public:
assert(m_markVector != NULL);
unsigned int a = m_map.getEmbedding<CELL>(d) ;
// if (a == EMBNULL)
// a = m_map.setOrbitEmbeddingOnNewCell<CELL>(d) ;
if (a == EMBNULL)
a = m_map.setOrbitEmbeddingOnNewCell<CELL>(d) ;
m_markVector->operator[](a).unsetMark(m_mark) ;
}
......@@ -160,8 +160,8 @@ public:
assert(m_markVector != NULL);
unsigned int a = m_map.getEmbedding<CELL>(d) ;
// if (a == EMBNULL)
// return false ;
if (a == EMBNULL)
return false ;
return m_markVector->operator[](a).testMark(m_mark) ;
}
......
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