#include <SalomeHPContainerTools.hxx>
Public Member Functions | |
std::size_t | size () const |
void | resize (std::size_t sz) |
std::size_t | getNumberOfFreePlace () const |
void | allocateFor (const std::vector< const Task * > &nodes) |
void | release (const Task *node) |
std::size_t | locateTask (const Task *node) const |
const SalomeContainerMonoHelper * | at (std::size_t pos) const |
SalomeContainerMonoHelper * | at (std::size_t pos) |
const SalomeContainerMonoHelper * | getHelperOfTaskThreadSafe (const SalomeHPContainer *cont, const Task *node) const |
const SalomeContainerMonoHelper * | getHelperOfTask (const Task *node) const |
SalomeContainerMonoHelper * | getHelperOfTaskThreadSafe (SalomeHPContainer *cont, const Task *node) |
SalomeContainerMonoHelper * | getHelperOfTask (const Task *node) |
Private Member Functions | |
void | checkNoCurrentWork () const |
void | checkPosInVec (std::size_t pos) const |
Private Attributes | |
std::vector< bool > | _whichOccupied |
std::vector< BASES::AutoRefCnt < YACS::ENGINE::SalomeContainerMonoHelper > > | _launchModeType |
std::map< const Task *, std::size_t > | _currentlyWorking |
Definition at line 39 of file SalomeHPContainerTools.hxx.
void SalomeHPContainerVectOfHelper::allocateFor | ( | const std::vector< const Task * > & | nodes | ) |
Definition at line 47 of file SalomeHPContainerTools.cxx.
References _currentlyWorking, _whichOccupied, and gui.graph::distance().
Referenced by YACS::ENGINE::SalomeHPContainer::allocateFor().
|
inline |
Definition at line 48 of file SalomeHPContainerTools.hxx.
References _launchModeType, and checkPosInVec().
Referenced by YACS::ENGINE::SalomeHPContainer::shutdown().
|
inline |
Definition at line 49 of file SalomeHPContainerTools.hxx.
References _launchModeType, and checkPosInVec().
|
private |
Definition at line 106 of file SalomeHPContainerTools.cxx.
References _currentlyWorking, and _launchModeType.
Referenced by resize().
|
private |
Definition at line 116 of file SalomeHPContainerTools.cxx.
References _launchModeType.
Referenced by at(), and locateTask().
const SalomeContainerMonoHelper * SalomeHPContainerVectOfHelper::getHelperOfTask | ( | const Task * | node | ) | const |
Definition at line 90 of file SalomeHPContainerTools.cxx.
References _launchModeType, and locateTask().
Referenced by YACS::ENGINE::SalomeHPContainer::getFullPlacementId(), and YACS::ENGINE::SalomeHPContainer::getPlacementId().
SalomeContainerMonoHelper * SalomeHPContainerVectOfHelper::getHelperOfTask | ( | const Task * | node | ) |
Definition at line 101 of file SalomeHPContainerTools.cxx.
References _launchModeType, and locateTask().
const SalomeContainerMonoHelper * SalomeHPContainerVectOfHelper::getHelperOfTaskThreadSafe | ( | const SalomeHPContainer * | cont, |
const Task * | node | ||
) | const |
Definition at line 84 of file SalomeHPContainerTools.cxx.
References _launchModeType, and locateTask().
Referenced by YACS::ENGINE::SalomeHPContainer::isAlreadyStarted().
SalomeContainerMonoHelper * SalomeHPContainerVectOfHelper::getHelperOfTaskThreadSafe | ( | SalomeHPContainer * | cont, |
const Task * | node | ||
) |
Definition at line 95 of file SalomeHPContainerTools.cxx.
References _launchModeType, and locateTask().
std::size_t SalomeHPContainerVectOfHelper::getNumberOfFreePlace | ( | ) | const |
Definition at line 42 of file SalomeHPContainerTools.cxx.
References _whichOccupied.
Referenced by YACS::ENGINE::SalomeHPContainer::getNumberOfFreePlace().
std::size_t SalomeHPContainerVectOfHelper::locateTask | ( | const Task * | node | ) | const |
Definition at line 74 of file SalomeHPContainerTools.cxx.
References _currentlyWorking, checkPosInVec(), and PMMLBasicsTestLauncher::ret.
Referenced by getHelperOfTask(), and getHelperOfTaskThreadSafe().
void SalomeHPContainerVectOfHelper::release | ( | const Task * | node | ) |
Definition at line 63 of file SalomeHPContainerTools.cxx.
References _currentlyWorking, and _whichOccupied.
Referenced by YACS::ENGINE::SalomeHPContainer::release().
void SalomeHPContainerVectOfHelper::resize | ( | std::size_t | sz | ) |
Definition at line 29 of file SalomeHPContainerTools.cxx.
References _currentlyWorking, _launchModeType, _whichOccupied, checkNoCurrentWork(), and CORBAEngineTest::i.
Referenced by YACS::ENGINE::SalomeHPContainer::setSizeOfPool().
|
inline |
Definition at line 42 of file SalomeHPContainerTools.hxx.
References _launchModeType.
Referenced by YACS::ENGINE::SalomeHPContainer::getSizeOfPool(), and YACS::ENGINE::SalomeHPContainer::shutdown().
|
private |
Definition at line 60 of file SalomeHPContainerTools.hxx.
Referenced by allocateFor(), checkNoCurrentWork(), locateTask(), release(), and resize().
|
private |
Definition at line 59 of file SalomeHPContainerTools.hxx.
Referenced by at(), checkNoCurrentWork(), checkPosInVec(), getHelperOfTask(), getHelperOfTaskThreadSafe(), resize(), and size().
|
private |
Definition at line 58 of file SalomeHPContainerTools.hxx.
Referenced by allocateFor(), getNumberOfFreePlace(), release(), and resize().