示例#1
0
 private void Serialize(ref SerializationWriter mySerializationWriter, EdgeTypeCounted myValue)
 {
     mySerializationWriter.WriteObject(myValue._Reference);
     mySerializationWriter.WriteObject(myValue._Count);
     mySerializationWriter.WriteObject(myValue._CountBy);
 }
示例#2
0
        private object Deserialize(ref SerializationReader mySerializationReader, EdgeTypeCounted myValue)
        {
            myValue._Reference = (Reference)mySerializationReader.ReadObject();
            myValue._Count = (ADBBaseObject)mySerializationReader.ReadObject();
            myValue._CountBy = (ADBBaseObject)mySerializationReader.ReadObject();

            CalcEstimatedSize(myValue);

            return myValue;
        }
示例#3
0
        private void CalcEstimatedSize(EdgeTypeCounted myTypeAttribute)
        {
            //Count + CountBy + Reference
            _estimatedSize = base.GetBaseSize();

            if(_Count != null)
            {
                _estimatedSize += _Count.GetEstimatedSize();
            }

            if(_CountBy != null)
            {
                _estimatedSize += _CountBy.GetEstimatedSize();
            }

            if(_Reference != null)
            {
                _estimatedSize += _Reference.GetEstimatedSize();
            }
        }
示例#4
0
        public override IReferenceEdge GetNewInstance(IEnumerable<ObjectUUID> iEnumerable, TypeUUID typeOfDBObjects)
        {
            var edgeTypeCounted = new EdgeTypeCounted();
            if (_Count != null)
                edgeTypeCounted._Count = _Count.Clone();
            if (_CountBy != null)
                edgeTypeCounted._CountBy = _CountBy.Clone();

            CalcEstimatedSize(edgeTypeCounted);

            return edgeTypeCounted;
        }
示例#5
0
        public override IReferenceEdge GetNewInstance(IEnumerable<Exceptional<DBObjectStream>> iEnumerable)
        {
            var edgeTypeCounted = new EdgeTypeCounted();
            if (_Count != null)
                edgeTypeCounted._Count = _Count.Clone();
            if (_CountBy != null)
                edgeTypeCounted._CountBy = _CountBy.Clone();

            CalcEstimatedSize(edgeTypeCounted);

            return edgeTypeCounted;
        }
示例#6
0
        public override IEdgeType GetNewInstance()
        {
            var edgeTypeCounted = new EdgeTypeCounted();
            if (_Count != null)
                edgeTypeCounted._Count = _Count.Clone();
            if (_CountBy != null)
                edgeTypeCounted._CountBy = _CountBy.Clone();

            CalcEstimatedSize(edgeTypeCounted);

            return edgeTypeCounted;
        }