geopm 3.2.1.dev535+ga96c120fc
GEOPM - Global Extensible Open Power Manager
Loading...
Searching...
No Matches
geopm::TreeCommLevel Class Referenceabstract

#include <TreeCommLevel.hpp>

Inheritance diagram for geopm::TreeCommLevel:

Public Member Functions

 TreeCommLevel ()=default
virtual ~TreeCommLevel ()=default
virtual int level_rank (void) const =0
 Returns the rank for this level.
virtual void send_up (const std::vector< double > &sample)=0
 Send samples up to the parent.
virtual void send_down (const std::vector< std::vector< double > > &policy)=0
 Send policies down to children.
virtual bool receive_up (std::vector< std::vector< double > > &sample)=0
 Receive samples up from children.
virtual bool receive_down (std::vector< double > &policy)=0
 Receive policies down from the parent.
virtual size_t overhead_send (void) const =0
 Returns the total number of bytes sent at this level.

Constructor & Destructor Documentation

◆ TreeCommLevel()

geopm::TreeCommLevel::TreeCommLevel ( )
default

◆ ~TreeCommLevel()

virtual geopm::TreeCommLevel::~TreeCommLevel ( )
virtualdefault

Member Function Documentation

◆ level_rank()

virtual int geopm::TreeCommLevel::level_rank ( void ) const
pure virtual

Returns the rank for this level.

Implemented in geopm::TreeCommLevelImp.

◆ overhead_send()

virtual size_t geopm::TreeCommLevel::overhead_send ( void ) const
pure virtual

Returns the total number of bytes sent at this level.

Implemented in geopm::TreeCommLevelImp.

◆ receive_down()

virtual bool geopm::TreeCommLevel::receive_down ( std::vector< double > & policy)
pure virtual

Receive policies down from the parent.

Implemented in geopm::TreeCommLevelImp.

◆ receive_up()

virtual bool geopm::TreeCommLevel::receive_up ( std::vector< std::vector< double > > & sample)
pure virtual

Receive samples up from children.

Implemented in geopm::TreeCommLevelImp.

◆ send_down()

virtual void geopm::TreeCommLevel::send_down ( const std::vector< std::vector< double > > & policy)
pure virtual

Send policies down to children.

Implemented in geopm::TreeCommLevelImp.

◆ send_up()

virtual void geopm::TreeCommLevel::send_up ( const std::vector< double > & sample)
pure virtual

Send samples up to the parent.

Implemented in geopm::TreeCommLevelImp.


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