-// Copyright (C) 2006-2020 CEA/DEN, EDF R&D
+// Copyright (C) 2006-2022 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
return std::unique_ptr<NbBranchesAbstract>(new NbBranches(*this,node));
}
+int NbBranches::getNumberOfBranches(int) const
+{
+ return this->getIntValue();
+}
+
bool NbBranches::isMyName(const std::string& name) const
{
return NbBranchesAbstract::IsBranchPortName(name);
{
value=_nbOfBranches.getIntValue();
return true;
- }
+ }
return false;
}
return std::unique_ptr<NbBranchesAbstract>(new NoNbBranches);
}
+int NoNbBranches::getNumberOfBranches(int nbOfElems) const
+{
+ return nbOfElems;
+}
+
void NoNbBranches::exInit(bool start)
{
}