geopm  3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
Public Member Functions | List of all members
geopm::TreeCommLevelImp Class Reference

#include <TreeCommLevel.hpp>

Inheritance diagram for geopm::TreeCommLevelImp:
Inheritance graph
[legend]
Collaboration diagram for geopm::TreeCommLevelImp:
Collaboration graph
[legend]

Public Member Functions

 TreeCommLevelImp (std::shared_ptr< Comm > comm, int num_send_up, int num_send_down)
 
 TreeCommLevelImp (const TreeCommLevelImp &other)=delete
 
TreeCommLevelImpoperator= (const TreeCommLevelImp &other)=delete
 
virtual ~TreeCommLevelImp ()
 
int level_rank (void) const override
 Returns the rank for this level. More...
 
void send_up (const std::vector< double > &sample) override
 Send samples up to the parent. More...
 
void send_down (const std::vector< std::vector< double > > &policy) override
 Send policies down to children. More...
 
bool receive_up (std::vector< std::vector< double > > &sample) override
 Receive samples up from children. More...
 
bool receive_down (std::vector< double > &policy) override
 Receive policies down from the parent. More...
 
size_t overhead_send (void) const override
 Returns the total number of bytes sent at this level. More...
 
- Public Member Functions inherited from geopm::TreeCommLevel
 TreeCommLevel ()=default
 
virtual ~TreeCommLevel ()=default
 

Constructor & Destructor Documentation

◆ TreeCommLevelImp() [1/2]

geopm::TreeCommLevelImp::TreeCommLevelImp ( std::shared_ptr< Comm comm,
int  num_send_up,
int  num_send_down 
)

◆ TreeCommLevelImp() [2/2]

geopm::TreeCommLevelImp::TreeCommLevelImp ( const TreeCommLevelImp other)
delete

◆ ~TreeCommLevelImp()

geopm::TreeCommLevelImp::~TreeCommLevelImp ( )
virtual

Member Function Documentation

◆ level_rank()

int geopm::TreeCommLevelImp::level_rank ( void  ) const
overridevirtual

Returns the rank for this level.

Implements geopm::TreeCommLevel.

◆ operator=()

TreeCommLevelImp& geopm::TreeCommLevelImp::operator= ( const TreeCommLevelImp other)
delete

◆ overhead_send()

size_t geopm::TreeCommLevelImp::overhead_send ( void  ) const
overridevirtual

Returns the total number of bytes sent at this level.

Implements geopm::TreeCommLevel.

◆ receive_down()

bool geopm::TreeCommLevelImp::receive_down ( std::vector< double > &  policy)
overridevirtual

Receive policies down from the parent.

Implements geopm::TreeCommLevel.

◆ receive_up()

bool geopm::TreeCommLevelImp::receive_up ( std::vector< std::vector< double > > &  sample)
overridevirtual

Receive samples up from children.

Implements geopm::TreeCommLevel.

◆ send_down()

void geopm::TreeCommLevelImp::send_down ( const std::vector< std::vector< double > > &  policy)
overridevirtual

Send policies down to children.

Implements geopm::TreeCommLevel.

◆ send_up()

void geopm::TreeCommLevelImp::send_up ( const std::vector< double > &  sample)
overridevirtual

Send samples up to the parent.

Implements geopm::TreeCommLevel.


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