Version: 9.15.0
YACS::ENGINE::AllPartDefinition Class Reference

#include <PlayGround.hxx>

Inheritance diagram for YACS::ENGINE::AllPartDefinition:
Collaboration diagram for YACS::ENGINE::AllPartDefinition:

Public Member Functions

 AllPartDefinition (const PlayGround *pg)
 
 AllPartDefinition (const AllPartDefinition &other)
 
std::string printSelf () const
 
std::vector< bool > getCoresOn () const
 
AllPartDefinitioncopy () const
 
int getNumberOfCoresConsumed () const
 
- Public Member Functions inherited from YACS::ENGINE::PartDefinition
const PlayGroundgetPlayGround () const
 
int getSpaceSize () const
 
void stashPart (int nbCoresStashed, double weightOfRemain, YACS::BASES::AutoRefCnt< PartDefinition > &pdStashed, YACS::BASES::AutoRefCnt< PartDefinition > &pdRemain) const
 
std::vector< std::size_t > computeWorkerIdsCovered (int nbCoresPerComp) const
 
- Public Member Functions inherited from YACS::ENGINE::RefCounter
unsigned int getRefCnt () const
 
void incrRef () const
 
bool decrRef () const
 

Private Member Functions

 ~AllPartDefinition ()
 

Additional Inherited Members

- Static Public Member Functions inherited from YACS::ENGINE::PartDefinition
static YACS::BASES::AutoRefCnt< PartDefinitionBuildFrom (const PlayGround *pg, const std::vector< int > &coreIds)
 
- Static Public Attributes inherited from YACS::ENGINE::RefCounter
static unsigned int _totalCnt =0
 
- Protected Member Functions inherited from YACS::ENGINE::PartDefinition
 PartDefinition (const PlayGround *pg)
 
 PartDefinition (const PartDefinition &other)
 
virtual ~PartDefinition ()
 
- Protected Member Functions inherited from YACS::ENGINE::RefCounter
 RefCounter ()
 
 RefCounter (const RefCounter &other)
 
virtual ~RefCounter ()
 
- Protected Attributes inherited from YACS::ENGINE::RefCounter
unsigned int _cnt
 

Detailed Description

Definition at line 174 of file PlayGround.hxx.

Constructor & Destructor Documentation

◆ AllPartDefinition() [1/2]

YACS::ENGINE::AllPartDefinition::AllPartDefinition ( const PlayGround pg)
inline

Definition at line 177 of file PlayGround.hxx.

177 :PartDefinition(pg) { }
PartDefinition(const PlayGround *pg)
Definition: PlayGround.cxx:590

Referenced by copy().

◆ AllPartDefinition() [2/2]

AllPartDefinition::AllPartDefinition ( const AllPartDefinition other)

Definition at line 778 of file PlayGround.cxx.

778  :PartDefinition(other)
779 {
780 }

◆ ~AllPartDefinition()

YACS::ENGINE::AllPartDefinition::~AllPartDefinition ( )
inlineprivate

Definition at line 184 of file PlayGround.hxx.

184 { }

Member Function Documentation

◆ copy()

AllPartDefinition * AllPartDefinition::copy ( ) const
virtual

Implements YACS::ENGINE::PartDefinition.

Definition at line 795 of file PlayGround.cxx.

796 {
797  return new AllPartDefinition(*this);
798 }
AllPartDefinition(const PlayGround *pg)
Definition: PlayGround.hxx:177

References AllPartDefinition().

◆ getCoresOn()

std::vector< bool > AllPartDefinition::getCoresOn ( ) const
virtual

Implements YACS::ENGINE::PartDefinition.

Definition at line 789 of file PlayGround.cxx.

790 {
791  std::vector<bool> ret(getSpaceSize(),true);
792  return ret;
793 }

References YACS::ENGINE::PartDefinition::getSpaceSize().

◆ getNumberOfCoresConsumed()

int AllPartDefinition::getNumberOfCoresConsumed ( ) const
virtual

Implements YACS::ENGINE::PartDefinition.

Definition at line 800 of file PlayGround.cxx.

801 {
802  return getSpaceSize();
803 }

References YACS::ENGINE::PartDefinition::getSpaceSize().

◆ printSelf()

std::string AllPartDefinition::printSelf ( ) const
virtual

Implements YACS::ENGINE::PartDefinition.

Definition at line 782 of file PlayGround.cxx.

783 {
784  std::ostringstream oss;
785  oss << "All";
786  return oss.str();
787 }

The documentation for this class was generated from the following files: