STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::random_location_generator Class Reference

Random location id generator. More...

Public Member Functions

 random_location_generator (unsigned int seed=get_location_id(), unsigned int nlocs=get_num_locations())
 Constructs a new random_location_generator. More...
 
result_type operator() (void)
 
result_type min (void) const
 
result_type max (void) const
 

Public Types

typedef runtime::location_id result_type
 

Detailed Description

Random location id generator.

Constructor & Destructor Documentation

◆ random_location_generator()

stapl::random_location_generator::random_location_generator ( unsigned int  seed = get_location_id(),
unsigned int  nlocs = get_num_locations() 
)
explicit

Constructs a new random_location_generator.

Parameters
seedRandom number generator seed.
nlocsNumber of locations.

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