public VertexNodeStateContextContainer <V> Copy() { var container = new VertexNodeStateContextContainer <V>(); foreach (var nodeStateContext in this.Values) { container.Values.Add(nodeStateContext.Key, nodeStateContext.Value.Copy <V>(nodeStateContext.Value, ContextFactory)); } return(container); }
public NodeStateContextContainerFacade(EdgeNodeStateContextContainer <E> edgeNodeStateContextContainer, VertexNodeStateContextContainer <V> vertexNodeStateContextContainer) { EdgeNodeStateContextContainer = edgeNodeStateContextContainer; VertexNodeStateContextContainer = vertexNodeStateContextContainer; }
//NodeStateContextContainerFacade Copy<T>(NodeStateContextContainerFactory<T>) public NodeStateContextContainerFacade() { EdgeNodeStateContextContainer = new EdgeNodeStateContextContainer <E>(); VertexNodeStateContextContainer = new VertexNodeStateContextContainer <V>(); }