SST/macro
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
sstmac::sw::node_id_allocation Class Reference

#include <node_id_allocation.h>

Inheritance diagram for sstmac::sw::node_id_allocation:
Inheritance graph
Collaboration diagram for sstmac::sw::node_id_allocation:
Collaboration graph

Public Member Functions

 node_id_allocation (parallel_runtime *rt)
 
virtual void init_factory_params (sprockit::sim_parameters *params)
 
virtual ~node_id_allocation () throw ()
 
virtual void allocate (int nnode_requested, const ordered_node_set &available, ordered_node_set &allocation) const
 Get nodes. More...
 
- Public Member Functions inherited from sstmac::sw::node_allocator
void set_topology (hw::topology *top)
 
virtual std::string to_string () const
 
virtual ~node_allocator () throw ()
 
- Public Member Functions inherited from sprockit::factory_type
virtual void init_factory_params (sim_parameters *params)
 
virtual void finalize_init ()
 

Static Public Member Functions

static void read_coordinate_file (const std::string &file, std::vector< node_id > &node_list, hw::topology *top)
 

Protected Attributes

std::string coord_file_
 
- Protected Attributes inherited from sstmac::sw::node_allocator
hw::topology * topology_
 
parallel_runtimert_
 

Additional Inherited Members

- Protected Member Functions inherited from sstmac::sw::node_allocator
 node_allocator (parallel_runtime *rt)
 

Detailed Description

Definition at line 10 of file node_id_allocation.h.

Constructor & Destructor Documentation

sstmac::sw::node_id_allocation::node_id_allocation ( parallel_runtime rt)
inline

Definition at line 15 of file node_id_allocation.h.

References init_factory_params().

Here is the call graph for this function:

virtual sstmac::sw::node_id_allocation::~node_id_allocation ( )
throw (
)
inlinevirtual

Definition at line 21 of file node_id_allocation.h.

References allocate(), and read_coordinate_file().

Here is the call graph for this function:

Member Function Documentation

virtual void sstmac::sw::node_id_allocation::allocate ( int  nnode,
const ordered_node_set available,
ordered_node_set allocation 
) const
virtual

Get nodes.

Parameters
nnodenumber of nodes requested
availablethe set of nodes that can be given
allocationreturns the nodes that have been allocated
Returns
Whether the allocation succeeded based on available nodes

Implements sstmac::sw::node_allocator.

Referenced by ~node_id_allocation().

virtual void sstmac::sw::node_id_allocation::init_factory_params ( sprockit::sim_parameters *  params)
virtual

Reimplemented from sstmac::sw::node_allocator.

Referenced by node_id_allocation().

static void sstmac::sw::node_id_allocation::read_coordinate_file ( const std::string &  file,
std::vector< node_id > &  node_list,
hw::topology *  top 
)
static

Referenced by ~node_id_allocation().

Member Data Documentation

std::string sstmac::sw::node_id_allocation::coord_file_
protected

Definition at line 34 of file node_id_allocation.h.


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