Changes in src/graph.hpp [e138de:d4103c8]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/graph.hpp
re138de rd4103c8 27 27 class molecule; 28 28 29 class Graph;30 29 class SubGraph; 31 30 class Node; … … 34 33 /********************************************** definitions *********************************/ 35 34 36 #define NodeMap pair < int, class Node* > 37 #define EdgeMap multimap < class Node*, class Edge* > 35 typedef std::pair < int, class Node* > NodeMap; 36 typedef std::multimap < class Node*, class Edge* > EdgeMap; 38 37 39 #define KeyStack deque<int> 40 #define KeySet set<int> 41 #define NumberValuePair pair<int, double> 42 #define Graph map <KeySet, NumberValuePair, KeyCompare > 43 #define GraphPair pair <KeySet, NumberValuePair > 44 #define KeySetTestPair pair<KeySet::iterator, bool> 45 #define GraphTestPair pair<Graph::iterator, bool> 38 typedef std::deque<int> KeyStack; 39 typedef std::set<int> KeySet; 40 typedef std::pair<int, double> NumberValuePair; 46 41 47 48 /******************************** Some small functions and/or structures **********************************/ 49 42 // needed for definition of Graph and GraphTestPair 50 43 struct KeyCompare 51 44 { 52 45 bool operator() (const KeySet SubgraphA, const KeySet SubgraphB) const; 53 46 }; 47 48 typedef std::map <KeySet, NumberValuePair, KeyCompare > Graph; 49 typedef std::pair <KeySet, NumberValuePair > GraphPair; 50 typedef std::pair<KeySet::iterator, bool> KeySetTestPair; 51 typedef std::pair<Graph::iterator, bool> GraphTestPair; 52 53 54 /******************************** Some small functions and/or structures **********************************/ 54 55 55 56 //bool operator < (KeySet SubgraphA, KeySet SubgraphB); //note: this declaration is important, otherwise normal < is used (producing wrong order)
Note:
See TracChangeset
for help on using the changeset viewer.