Stride Reference Manual  1.0
stride::Traveller< PersonType > Class Template Reference

#include <Person.h>

Collaboration diagram for stride::Traveller< PersonType >:
Collaboration graph

Public Types

using uint = unsigned int
 

Public Member Functions

 Traveller (const PersonType &home_person, PersonType *new_person, const string &home_sim_id, const string &destination_sim_id, uint home_simulator_index)
 
 Traveller (const Traveller &other_traveller)
 
const PersonType & getHomePerson () const
 
PersonType * getNewPerson () const
 
string getHomeSimulatorId () const
 
uint getHomeSimulatorIndex () const
 
string getDestinationSimulatorId () const
 

Private Attributes

string m_home_simulator_id
 The id of the home simulator. More...
 
string m_destination_simulator_id
 The id of the destination simulator. More...
 
uint m_home_simulator_index
 The index of the person in the home simulator. More...
 
PersonType m_home_person
 The person in the region of origin. More...
 
PersonType * m_new_person
 The person when he travelled to the other region. More...
 

Detailed Description

template<class PersonType>
class stride::Traveller< PersonType >

Definition at line 41 of file Person.h.

Member Typedef Documentation

template<class PersonType >
using stride::Traveller< PersonType >::uint = unsigned int

Definition at line 17 of file Traveller.h.

Constructor & Destructor Documentation

template<class PersonType >
stride::Traveller< PersonType >::Traveller ( const PersonType &  home_person,
PersonType *  new_person,
const string &  home_sim_id,
const string &  destination_sim_id,
uint  home_simulator_index 
)
inline

Definition at line 19 of file Traveller.h.

template<class PersonType >
stride::Traveller< PersonType >::Traveller ( const Traveller< PersonType > &  other_traveller)
inline

Definition at line 25 of file Traveller.h.

Member Function Documentation

template<class PersonType >
const PersonType& stride::Traveller< PersonType >::getHomePerson ( ) const
inline

Definition at line 31 of file Traveller.h.

template<class PersonType >
PersonType* stride::Traveller< PersonType >::getNewPerson ( ) const
inline

Definition at line 35 of file Traveller.h.

Referenced by stride::Simulator::hostForeignTravellers().

template<class PersonType >
string stride::Traveller< PersonType >::getHomeSimulatorId ( ) const
inline

Definition at line 39 of file Traveller.h.

template<class PersonType >
uint stride::Traveller< PersonType >::getHomeSimulatorIndex ( ) const
inline

Definition at line 43 of file Traveller.h.

template<class PersonType >
string stride::Traveller< PersonType >::getDestinationSimulatorId ( ) const
inline

Definition at line 47 of file Traveller.h.

Member Data Documentation

template<class PersonType >
string stride::Traveller< PersonType >::m_home_simulator_id
private

The id of the home simulator.

Definition at line 52 of file Traveller.h.

template<class PersonType >
string stride::Traveller< PersonType >::m_destination_simulator_id
private

The id of the destination simulator.

Definition at line 53 of file Traveller.h.

template<class PersonType >
uint stride::Traveller< PersonType >::m_home_simulator_index
private

The index of the person in the home simulator.

Definition at line 54 of file Traveller.h.

template<class PersonType >
PersonType stride::Traveller< PersonType >::m_home_person
private

The person in the region of origin.

Definition at line 56 of file Traveller.h.

template<class PersonType >
PersonType* stride::Traveller< PersonType >::m_new_person
private

The person when he travelled to the other region.

Definition at line 57 of file Traveller.h.


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