Add of getter for the builder in Topology
This commit is contained in:
parent
c90fdc579f
commit
085530ab36
2 changed files with 13 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 :
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue