SST/macro
Public Member Functions | List of all members
sstmac::sw::first_available_allocation Class Reference

#include <first_available_allocation.h>

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

Public Member Functions

 first_available_allocation (parallel_runtime *rt)
 
virtual ~first_available_allocation () throw ()
 
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 void init_factory_params (sprockit::sim_parameters *params)
 
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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from sstmac::sw::node_allocator
 node_allocator (parallel_runtime *rt)
 
- Protected Attributes inherited from sstmac::sw::node_allocator
hw::topology * topology_
 
parallel_runtimert_
 

Detailed Description

Definition at line 20 of file first_available_allocation.h.

Constructor & Destructor Documentation

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

Definition at line 23 of file first_available_allocation.h.

References allocate(), and ~first_available_allocation().

Here is the call graph for this function:

virtual sstmac::sw::first_available_allocation::~first_available_allocation ( )
throw (
)
virtual

Member Function Documentation

void sstmac::sw::first_available_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 first_available_allocation().


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