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

#include <TreeCommLevel.hpp>

Inheritance diagram for geopm::TreeCommLevel:
Inheritance graph
[legend]

Public Member Functions

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

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: