Road is an element of a network. Road are strongly linked with Points.  
 More...
#include <road.h>
Road is an element of a network. Road are strongly linked with Points. 
Definition at line 14 of file road.h.
 
Default constructor. Just instanciates a Road object. 
Definition at line 19 of file road.h.
 
 
  
  
      
        
          | Road::Road  | 
          ( | 
          long  | 
          roadId | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. Instanciates a Road object with a specific ID. 
- Parameters
 - 
  
    | roadId | The specific ID of the road  | 
  
   
Definition at line 25 of file road.h.
 
 
Destructor that clears all attributes. 
Definition at line 4 of file road.cpp.
 
 
      
        
          | void Road::addNeighbor  | 
          ( | 
          long  | 
          roadId | ) | 
           | 
        
      
 
Add a neighbor of the road identified by its id to the road. 
Add the road id to the set of neighbors. This way the road knows its neighbors.
- Parameters
 - 
  
  
 
Definition at line 14 of file road.cpp.
 
 
      
        
          | void Road::addPoint  | 
          ( | 
          int  | 
          pointId | ) | 
           | 
        
      
 
Add a point to the road. 
Insert the point to the vector of points (end position).
- Parameters
 - 
  
    | pointId | Id of the point to add.  | 
  
   
Definition at line 9 of file road.cpp.
 
 
  
  
      
        
          | long Road::edgeId  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get the id of the road. 
- Returns
 - the id of the road 
 
Definition at line 65 of file road.h.
 
 
      
        
          | int Road::getIntersectionIDWith  | 
          ( | 
          Road *  | 
          r | ) | 
           const | 
        
      
 
 
  
  
      
        
          | int Road::getNoOfNeighbors  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
get number of neighbors of the road 
- Returns
 - the number of neighbors of the road 
 
Definition at line 77 of file road.h.
 
 
      
        
          | void Road::outputInfos  | 
          ( | 
           | ) | 
           const | 
        
      
 
print some informations about the road 
Definition at line 30 of file road.cpp.
 
 
  
  
      
        
          | const std::vector<int>& Road::vectorOfPointsId  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get the vector of points composing the road. 
- Returns
 - a vector of Points' id 
 
Definition at line 71 of file road.h.
 
 
Id of the road. 
Definition at line 82 of file road.h.
 
 
      
        
          | std::set<long> Road::m_setOfNeighbors | 
        
      
 
Set of all roadId connected to this one (including this one) 
Definition at line 79 of file road.h.
 
 
  
  
      
        
          | std::vector<int> Road::m_vectorOfPointsId | 
         
       
   | 
  
protected   | 
  
 
Vector representing the id of each node (Point object) 
Definition at line 83 of file road.h.
 
 
The documentation for this class was generated from the following files: