OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SocialNetworkGraph< TopoDiscoveryStrategy_t > Class Template Reference

#include <SocialNetworkGraph.h>

Inherits TopoDiscoveryStrategy_t.

Public Member Functions

std::set< size_t > execute (size_t numMasters, size_t dimensions, size_t id, int)
 

Private Member Functions

void setNetworkNeighbors ()
 
double manhattenDistance (size_t from, size_t to)
 
void chooseRandomNeighbor ()
 

Private Attributes

boost::random::mt19937 gen_
 
double alpha_
 
size_t numMasters_
 
size_t dim_
 
size_t myID_
 
size_t randomNeighbor_
 
std::set< size_t > realNetworkNeighborPIDs_
 

Detailed Description

template<class TopoDiscoveryStrategy_t>
class SocialNetworkGraph< TopoDiscoveryStrategy_t >

Definition at line 48 of file SocialNetworkGraph.h.

Member Function Documentation

◆ chooseRandomNeighbor()

template<class TopoDiscoveryStrategy_t >
void SocialNetworkGraph< TopoDiscoveryStrategy_t >::chooseRandomNeighbor ( )
inlineprivate

◆ execute()

template<class TopoDiscoveryStrategy_t >
std::set<size_t> SocialNetworkGraph< TopoDiscoveryStrategy_t >::execute ( size_t  numMasters,
size_t  dimensions,
size_t  id,
int   
)
inline

◆ manhattenDistance()

template<class TopoDiscoveryStrategy_t >
double SocialNetworkGraph< TopoDiscoveryStrategy_t >::manhattenDistance ( size_t  from,
size_t  to 
)
inlineprivate

Definition at line 118 of file SocialNetworkGraph.h.

References abs(), SocialNetworkGraph< TopoDiscoveryStrategy_t >::numMasters_, and sqrt().

Referenced by SocialNetworkGraph< TopoDiscoveryStrategy_t >::chooseRandomNeighbor().

Here is the call graph for this function:

◆ setNetworkNeighbors()

template<class TopoDiscoveryStrategy_t >
void SocialNetworkGraph< TopoDiscoveryStrategy_t >::setNetworkNeighbors ( )
inlineprivate

Member Data Documentation

◆ alpha_

template<class TopoDiscoveryStrategy_t >
double SocialNetworkGraph< TopoDiscoveryStrategy_t >::alpha_
private

◆ dim_

template<class TopoDiscoveryStrategy_t >
size_t SocialNetworkGraph< TopoDiscoveryStrategy_t >::dim_
private

◆ gen_

template<class TopoDiscoveryStrategy_t >
boost::random::mt19937 SocialNetworkGraph< TopoDiscoveryStrategy_t >::gen_
private

◆ myID_

template<class TopoDiscoveryStrategy_t >
size_t SocialNetworkGraph< TopoDiscoveryStrategy_t >::myID_
private

◆ numMasters_

template<class TopoDiscoveryStrategy_t >
size_t SocialNetworkGraph< TopoDiscoveryStrategy_t >::numMasters_
private

◆ randomNeighbor_

template<class TopoDiscoveryStrategy_t >
size_t SocialNetworkGraph< TopoDiscoveryStrategy_t >::randomNeighbor_
private

◆ realNetworkNeighborPIDs_

template<class TopoDiscoveryStrategy_t >
std::set<size_t> SocialNetworkGraph< TopoDiscoveryStrategy_t >::realNetworkNeighborPIDs_
private

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