File diff r23537:f6a6d4ce4bd5 → r23538:8df50944b27a
src/linkgraph/linkgraphjob.h
Show inline comments
 
@@ -41,25 +41,25 @@ private:
 
	};
 

	
 
	/**
 
	 * Annotation for a link graph node.
 
	 */
 
	struct NodeAnnotation {
 
		uint undelivered_supply; ///< Amount of supply that hasn't been distributed yet.
 
		PathList paths;          ///< Paths through this node, sorted so that those with flow == 0 are in the back.
 
		FlowStatMap flows;       ///< Planned flows to other nodes.
 
		void Init(uint supply);
 
	};
 

	
 
	typedef SmallVector<NodeAnnotation, 16> NodeAnnotationVector;
 
	typedef std::vector<NodeAnnotation> NodeAnnotationVector;
 
	typedef SmallMatrix<EdgeAnnotation> EdgeAnnotationMatrix;
 

	
 
	friend const SaveLoad *GetLinkGraphJobDesc();
 
	friend class LinkGraphSchedule;
 

	
 
protected:
 
	const LinkGraph link_graph;       ///< Link graph to by analyzed. Is copied when job is started and mustn't be modified later.
 
	const LinkGraphSettings settings; ///< Copy of _settings_game.linkgraph at spawn time.
 
	ThreadObject *thread;             ///< Thread the job is running in or NULL if it's running in the main thread.
 
	Date join_date;                   ///< Date when the job is to be joined.
 
	NodeAnnotationVector nodes;       ///< Extra node data necessary for link graph calculation.
 
	EdgeAnnotationMatrix edges;       ///< Extra edge data necessary for link graph calculation.