예제 #1
0
 public override int CompareTo(VHDLScalarValue obj)
 {
     if (obj is VHDLPhysicalValue <T> )
     {
         VHDLPhysicalValue <T> els = obj as VHDLPhysicalValue <T>;
         return(mValue.CompareTo(els.mValue));
     }
     throw new ArgumentException(string.Format("Could not cast {0} to VHDLPhysicalValue<{1}>", obj.GetType().Name, GetType().Name));
 }
예제 #2
0
 public VHDLPhysicalValue(VHDLPhysicalType <T> physicalType, VHDLPhysicalValue <T> value)
     : base(physicalType)
 {
     this.physicalType = physicalType;
     init(value.mValue);
 }
예제 #3
0
 public VHDLPhysicalValue(VHDLPhysicalValue <T> value)
     : this(VHDLPhysicalType <T> .DefPhysicalType, value)
 {
 }
예제 #4
0
 public bool Equals(VHDLPhysicalValue <T> value)
 {
     return(mValue == value.Value);
 }
예제 #5
0
 public bool GreaterEquals(VHDLPhysicalValue <T> value)
 {
     return(mValue >= value.Value);
 }
예제 #6
0
 public bool GreaterThan(VHDLPhysicalValue <T> value)
 {
     return(mValue > value.Value);
 }
예제 #7
0
 public bool LessThan(VHDLPhysicalValue <T> value)
 {
     return(mValue < value.Value);
 }
예제 #8
0
 public VHDLPhysicalValue <T> Minus(VHDLPhysicalValue <T> value)
 {
     return(new VHDLPhysicalValue <T>(physicalType, mValue - value.Value));
 }