protected TGraph CreateGraph <TGraph>()
            where TGraph : PXGraph, new()
        {
            TGraph result = new TGraph();

            result.Clear();
            return(result);
        }
예제 #2
0
        private static TGraph CreateSpecGraph <TGraph>()
            where TGraph : PXGraph, new()
        {
            TGraph graph = new TGraph();

            graph.Clear();
            return(graph);
        }
            internal XmlEdgeList([NotNull] TGraph graph)
            {
                if (graph == null)
                {
                    throw new ArgumentNullException(nameof(graph));
                }

                _graph = graph;
            }
예제 #4
0
 public Subscription(
     IObserver <BindingResultChange <TResult> > observer,
     IRootBindingPrototype <TGraph, TResult> prototype,
     TGraph graph)
 {
     _observer = observer;
     _binding  = prototype.Clone();
     _binding.ResultChanged += OnBindingResultChanged;
     _binding.Bind(graph);
 }
예제 #5
0
            public ReaderWorker(
                [NotNull] XmlReader reader,
                [NotNull] TGraph graph,
                [NotNull] IdentifiableVertexFactory <TVertex> vertexFactory,
                [NotNull] IdentifiableEdgeFactory <TVertex, TEdge> edgeFactory)
            {
                Debug.Assert(reader != null);
                Debug.Assert(graph != null);
                Debug.Assert(vertexFactory != null);
                Debug.Assert(edgeFactory != null);

                _reader        = reader;
                _graph         = graph;
                _vertexFactory = vertexFactory;
                _edgeFactory   = edgeFactory;
            }
예제 #6
0
            public WriterWorker(
                [NotNull] GraphMLSerializer <TVertex, TEdge, TGraph> serializer,
                [NotNull] XmlWriter writer,
                [NotNull] TGraph graph,
                [NotNull] VertexIdentity <TVertex> vertexIdentities,
                [NotNull] EdgeIdentity <TVertex, TEdge> edgeIdentities)
            {
                Debug.Assert(serializer != null);
                Debug.Assert(writer != null);
                Debug.Assert(graph != null);
                Debug.Assert(vertexIdentities != null);
                Debug.Assert(edgeIdentities != null);

                _serializer       = serializer;
                _writer           = writer;
                _graph            = graph;
                _vertexIdentities = vertexIdentities;
                _edgeIdentities   = edgeIdentities;
            }
예제 #7
0
            public WriterWorker(
                GraphMLSerializer <TVertex, TEdge, TGraph> serializer,
                XmlWriter writer,
                TGraph visitedGraph,
                VertexIdentity <TVertex> vertexIdentities,
                EdgeIdentity <TVertex, TEdge> edgeIdentities)
            {
                Contract.Requires(serializer != null);
                Contract.Requires(writer != null);
                Contract.Requires(visitedGraph != null);
                Contract.Requires(vertexIdentities != null);
                Contract.Requires(edgeIdentities != null);

                this.serializer       = serializer;
                this.writer           = writer;
                this.visitedGraph     = visitedGraph;
                this.vertexIdentities = vertexIdentities;
                this.edgeIdentities   = edgeIdentities;
            }
예제 #8
0
            public ReaderWorker(
                GraphMLDeserializer <TVertex, TEdge, TGraph> serializer,
                XmlReader reader,
                TGraph visitedGraph,
                IdentifiableVertexFactory <TVertex> vertexFactory,
                IdentifiableEdgeFactory <TVertex, TEdge> edgeFactory
                )
            {
                Contract.Requires(serializer != null);
                Contract.Requires(reader != null);
                Contract.Requires(visitedGraph != null);
                Contract.Requires(vertexFactory != null);
                Contract.Requires(edgeFactory != null);

                this.serializer    = serializer;
                this.reader        = reader;
                this.visitedGraph  = visitedGraph;
                this.vertexFactory = vertexFactory;
                this.edgeFactory   = edgeFactory;
            }
예제 #9
0
 public static object GetValueExt <TSelf>(TGraph graph, TTable row)
     where TSelf : PXFieldAttachedTo <TTable> .By <TGraph> .As <TValue>
 => ((PXFieldState)graph.Caches <TTable>().GetStateExt(row, typeof(TSelf).Name.LastSegment('+')))?.Value;
예제 #10
0
 public static object GetValueExt <TSelf>(TGraph graph, TTable row)
     where TSelf : As <TValue>
 => ((PXFieldState)graph.Caches <TTable>().GetStateExt(row, typeof(TSelf).Name.Split('+').Last()))?.Value;
예제 #11
0
 public static TValue GetValue <TSelf>(TGraph graph, TTable row)
     where TSelf : As <TValue>
 => graph.GetExtension <TSelf>().GetValue(row);
예제 #12
0
 public static String GetValue(TGraph graph, TTable row) => GetValue <TSelf>(graph, row);
예제 #13
0
 public static DateTime?GetValue(TGraph graph, TTable row) => GetValue <TSelf>(graph, row);
예제 #14
0
 public static decimal?GetValue(TGraph graph, TTable row) => GetValue <TSelf>(graph, row);
예제 #15
0
 public static int?GetValue(TGraph graph, TTable row) => GetValue <TSelf>(graph, row);
예제 #16
0
                internal readonly HashSet <TNode> ResolvedNodeSet = new HashSet <TNode>(); // Used to keep track of the nodes that have already been walked by the walker.

                internal TransformationState(TGraph graph)
                {
                    this.Graph = graph;
                }
예제 #17
0
 public static TValue GetValue <TSelf>(TGraph graph, TTable row)
     where TSelf : PXFieldAttachedTo <TTable> .By <TGraph> .As <TValue>
 => graph.GetExtension <TSelf>().GetValue(row);
            internal XmlEdgeList(TGraph graph)
            {
                Contract.Requires(graph != null);

                this.graph = graph;
            }