My Project
src
random_passenger_generator.h
Go to the documentation of this file.
1
7
#ifndef SRC_RANDOM_PASSENGER_GENERATOR_H_
8
#define SRC_RANDOM_PASSENGER_GENERATOR_H_
9
10
#include <list>
11
#include <random>
12
#include <ctime>
13
14
#include "
src/passenger_generator.h
"
15
#include "
src/stop.h
"
16
17
class
Stop
;
// forward declaration
25
class
RandomPassengerGenerator
:
public
PassengerGenerator
{
26
public
:
27
RandomPassengerGenerator
(std::list<double>, std::list<Stop *>);
34
int
GeneratePassengers
()
override
;
35
36
private
:
37
static
std:: minstd_rand0 my_rand;
38
};
39
40
#endif // SRC_RANDOM_PASSENGER_GENERATOR_H_
Stop
The main class to define stop.
Definition:
stop.h:22
RandomPassengerGenerator::GeneratePassengers
int GeneratePassengers() override
Generation of a passenger with a randomized name and random destination within bounds.
Definition:
random_passenger_generator.cc:23
PassengerGenerator
Virtual class for the generation of passengers.
Definition:
passenger_generator.h:19
stop.h
passenger_generator.h
RandomPassengerGenerator
The main class for the generation of passengers.
Definition:
random_passenger_generator.h:25
Generated by
1.8.16