Add of getter for the builder in Topology

This commit is contained in:
lasnier 2012-12-04 17:36:31 +01:00
commit 085530ab36
2 changed files with 13 additions and 1 deletions

View file

@ -27,7 +27,6 @@ ParadisEO WebSite : http://paradiseo.gforge.inria.fr
Contact: paradiseo-help@lists.gforge.inria.fr
*/
template <class TopologyType>
std::vector<unsigned> paradiseo::smp::Topology<TopologyType>::getIdNeighbors(unsigned idNode) const
{
@ -57,3 +56,11 @@ void paradiseo::smp::Topology<TopologyType>::isolateNode(unsigned idNode)
_matrix[i][idNode] = false;
}
}
template <class TopologyType>
TopologyType & paradiseo::smp::Topology<TopologyType>::getBuilder()
{
TopologyType &b=_builder;
return b;
}

View file

@ -73,6 +73,11 @@ public :
*@param idNode index of the node to be isolated
*/
void isolateNode(unsigned idNode);
/**
*Getter for the variable _builder by reference
*/
TopologyType & getBuilder();
private :