コード例 #1
0
        public override void UnionWith(IListOrSetEdgeType myAEdgeType)
        {
            var anotherEdge = myAEdgeType as ASetOfReferencesEdgeType;

            if (anotherEdge != null)
            {
                foreach (var aReference in anotherEdge.GetAllReferences())
                {
                    if (!_ObjectUUIDs.ContainsKey(aReference.ObjectUUID))
                    {
                        _ObjectUUIDs.Add(aReference.ObjectUUID, aReference);
                    }
                }
            }
            else
            {
                throw new ArgumentException("myValue is not of type ObjectUUID");
            }

            CalcEstimatedSize(this);
        }
コード例 #2
0
 public override void UnionWith(IListOrSetEdgeType myAListEdgeType)
 {
     _Objects = new List<ADBBaseObject>(_Objects.Union((myAListEdgeType as EdgeTypeListOfBaseObjects)._Objects));
 }
コード例 #3
0
 public abstract void UnionWith(IListOrSetEdgeType myAListEdgeType);
コード例 #4
0
ファイル: EdgeTypeWeighted.cs プロジェクト: Vadi/sones
        public override void UnionWith(IListOrSetEdgeType myAEdgeType)
        {
            if (myAEdgeType is EdgeTypeWeighted)
            {
                foreach (var e in ((EdgeTypeWeighted)myAEdgeType).weightedSet.GetAll())
                {
                    weightedSet.Add(e.Key, e.Value);
                }
            }
            else
            {
                throw new ArgumentException("myAEdgeType is not of type EdgeTypeWeightedList");
            }

            CalcEstimatedSize(this);
        }
コード例 #5
0
        public override void UnionWith(IListOrSetEdgeType myAListEdgeType)
        {
            _Objects.UnionWith((myAListEdgeType as EdgeTypeSetOfBaseObjects)._Objects);

            CalcEstimatedSize(this);
        }
コード例 #6
0
ファイル: EdgeTypePath.cs プロジェクト: ipbi/sones
 public override void UnionWith(IListOrSetEdgeType myAListEdgeType)
 {
     throw new NotImplementedException();
 }
コード例 #7
0
 public override void UnionWith(IListOrSetEdgeType myAListEdgeType)
 {
     _Objects.UnionWith((myAListEdgeType as EdgeTypeSetOfBaseObjects)._Objects);
 }