Guest User

Untitled

a guest
Jun 19th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.28 KB | None | 0 0
  1. /*
  2.  * File:   Vertex.h
  3.  * Authoren: The Speedfisting Crew
  4.  *
  5.  * Created on Fistersday, 1 3 3 7 , 13:37
  6.  * made in Hanau,Hessen,Germany
  7.  */
  8.  
  9. #ifndef VERTEX_H
  10. #define VERTEX_H
  11. #include <iostream>
  12. #include <string>
  13. using namespace std;
  14.  
  15. class Vertex {
  16. public:
  17.     Vertex();
  18.     Vertex(const Vertex& orig);
  19.     ~Vertex();
  20.     int getIndegree()const;
  21.     int getOutdegree()const;
  22.     int getOrd()const;
  23.     string getValue()const;
  24.     bool isVisited()const;
  25.     bool isLiving()const;
  26.     void setVisited(bool);
  27.     void setLiving(bool);
  28.     void setIndegree(int);
  29.     void setOutdegree(int);
  30.     void setOrd(int);
  31.     void setValue(string);
  32.     void incIndegree();
  33.     void decIndegree();
  34.     void incOutdegree();
  35.     void decOutdegree();
  36.     void setVorgaenger(int);
  37.     int getVorgaenger()const;
  38.     void setDistance(double);
  39.     double getDistance() const;
  40.     Vertex& operator=(const Vertex&);
  41.  
  42.  
  43.  
  44. private:
  45.     string value; // Markierung
  46.     int indegree; // Eingangsgrad
  47.     int outdegree; // Ausgangsgrad
  48.     int ord; // Ordnungszahl des Knotens
  49.     bool visited; // Knoten-"besucht"-Marke
  50.     bool living; // Knoten existiert
  51.     int vorgaenger; //position des vertex im vertex array
  52.     double distance; //distanz zum startknoten
  53. };
  54.  
  55. #endif  /* VERTEX_H */
Add Comment
Please, Sign In to add comment