My Project
Loading...
Searching...
No Matches
vehicle< t > Struct Template Reference

#include <vehicle.h>

Collaboration diagram for vehicle< t >:
Collaboration graph

Public Member Functions

 vehicle ()
 vehicle (int i, t s, t d)
string getTakenPath ()
string getstart_and_end ()

Public Attributes

int id
t dest
t source
t current
list< t > path
pair< t, t > currentRoad
int state
bool inQueue
vector< t > selected_path
float timespent
float timeRemaining

Detailed Description

template<class t>
struct vehicle< t >

Definition at line 9 of file vehicle.h.

Constructor & Destructor Documentation

◆ vehicle() [1/2]

template<class t>
vehicle< t >::vehicle ( )
inline

Definition at line 20 of file vehicle.h.

◆ vehicle() [2/2]

template<class t>
vehicle< t >::vehicle ( int i,
t s,
t d )
inline

Definition at line 31 of file vehicle.h.

Member Function Documentation

◆ getstart_and_end()

template<class t>
string vehicle< t >::getstart_and_end ( )
inline

Definition at line 57 of file vehicle.h.

◆ getTakenPath()

template<class t>
string vehicle< t >::getTakenPath ( )
inline

Definition at line 42 of file vehicle.h.

Member Data Documentation

◆ current

template<class t>
t vehicle< t >::current

Definition at line 13 of file vehicle.h.

◆ currentRoad

template<class t>
pair<t, t> vehicle< t >::currentRoad

Definition at line 15 of file vehicle.h.

◆ dest

template<class t>
t vehicle< t >::dest

Definition at line 11 of file vehicle.h.

◆ id

template<class t>
int vehicle< t >::id

Definition at line 10 of file vehicle.h.

◆ inQueue

template<class t>
bool vehicle< t >::inQueue

Definition at line 17 of file vehicle.h.

◆ path

template<class t>
list<t> vehicle< t >::path

Definition at line 14 of file vehicle.h.

◆ selected_path

template<class t>
vector<t> vehicle< t >::selected_path

Definition at line 18 of file vehicle.h.

◆ source

template<class t>
t vehicle< t >::source

Definition at line 12 of file vehicle.h.

◆ state

template<class t>
int vehicle< t >::state

Definition at line 16 of file vehicle.h.

◆ timeRemaining

template<class t>
float vehicle< t >::timeRemaining

Definition at line 19 of file vehicle.h.

◆ timespent

template<class t>
float vehicle< t >::timespent

Definition at line 19 of file vehicle.h.


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