Typedefs.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef LAYOUTTYPEDEFS_H
  2. #define LAYOUTTYPEDEFS_H
  3. #include <QString>
  4. #include <QMap>
  5. #include <QPair>
  6. #include <ReaderWriterUtilities/GraphElementProperties.h>
  7. /**
  8. * User defined type for element name to property name pair.
  9. */
  10. typedef QPair<QString, QString> ElementNamePropertyNamePair;
  11. /**
  12. * User defined type for map of graph element name to list of attributes.
  13. */
  14. typedef QMap <QString , GraphElementProperties > MapGraphElementToAttributeList;
  15. //For attributes e.g. "node" "height" - "key0";or "edge" "direction" - "key1"
  16. /**
  17. * User defined type for map of element name to it's key name.
  18. * e.g. "node" "height" - "key0";or "edge" "direction" - "key1"
  19. */
  20. typedef QMap < ElementNamePropertyNamePair , QString > MapElementNameAndPropertyToKey;
  21. /**
  22. * User defined type for vertex index to its boolean value indicating if that vertex is already visited or not.
  23. */
  24. typedef QMap <int , bool> MapVisitedVertices;
  25. /**
  26. * User defined type for edge index to its boolean value indicating if that edge is already visited or not.
  27. */
  28. typedef QMap <int , bool> MapVisitedEdges;
  29. #endif // TYPEDEFS_H