예제 #1
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     return true;
 }
예제 #2
0
파일: Events.cs 프로젝트: nice1378/x2clr
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     CapitalizeReq o = (CapitalizeReq)other;
     if (message_ != o.message_)
     {
         return false;
     }
     return true;
 }
예제 #3
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     HeartbeatEvent o = (HeartbeatEvent)other;
     if (timestamp_ != o.timestamp_)
     {
         return false;
     }
     return true;
 }
예제 #4
0
파일: Sample.cs 프로젝트: nice1378/x2clr
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     SampleCell1 o = (SampleCell1)other;
     if (foo != o.foo)
     {
         return false;
     }
     if (bar != o.bar)
     {
         return false;
     }
     return true;
 }
예제 #5
0
파일: Cell.cs 프로젝트: jaykang920/x2clr
 /// <summary>
 /// Determines whether the specified Cell object is equivalent to this
 /// one.
 /// </summary>
 /// A Cell is said to be equivalent to the other if its fingerprint is
 /// equivalent to the other's, and all the fingerprinted properties of
 /// the other exactly matches with their counterparts.
 /// <remarks>
 /// Given two Cell objects x and y, x.Equivalent(y) returns true if:
 ///   <list type="bullet">
 ///     <item>x.fingerprint.Equivalent(y.fingerprint) returns true.
 ///     </item>
 ///     <item>All the fingerprinted properties in x are equal to those
 ///     in y.</item>
 ///   </list>
 /// </remarks>
 public bool Equivalent(Cell other)
 {
     return Equivalent(other, fingerprint);
 }
예제 #6
0
 protected override bool IsEquivalent(Cell other, Fingerprint fingerprint)
 {
     if (!base.IsEquivalent(other, fingerprint))
     {
         return false;
     }
     HelloResp o = (HelloResp)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (result_ != o.result_)
         {
             return false;
         }
     }
     return true;
 }
예제 #7
0
파일: Sample.cs 프로젝트: nice1378/x2clr
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     SampleEvent3 o = (SampleEvent3)other;
     if (qux != o.qux)
     {
         return false;
     }
     return true;
 }
예제 #8
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     LinkSessionRecovered o = (LinkSessionRecovered)other;
     if (linkName_ != o.linkName_)
     {
         return false;
     }
     if (handle_ != o.handle_)
     {
         return false;
     }
     if (context_ != o.context_)
     {
         return false;
     }
     return true;
 }
예제 #9
0
 protected override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     HelloResp o = (HelloResp)other;
     if (result_ != o.result_)
     {
         return false;
     }
     return true;
 }
예제 #10
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     SampleCell4 o = (SampleCell4)other;
     if (quux_ != o.quux_)
     {
         return false;
     }
     return true;
 }
예제 #11
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     SampleEvent1 o = (SampleEvent1)other;
     if (foo_ != o.foo_)
     {
         return false;
     }
     if (bar_ != o.bar_)
     {
         return false;
     }
     return true;
 }
예제 #12
0
파일: Events.cs 프로젝트: nice1378/x2clr
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     CapitalizeResp o = (CapitalizeResp)other;
     if (result_ != o.result_)
     {
         return false;
     }
     return true;
 }
예제 #13
0
 public override bool IsEquivalent(Cell other)
 {
     if (!base.IsEquivalent(other))
     {
         return false;
     }
     LinkSessionRecovered o = (LinkSessionRecovered)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (linkName_ != o.linkName_)
         {
             return false;
         }
     }
     if (touched[1])
     {
         if (handle_ != o.handle_)
         {
             return false;
         }
     }
     if (touched[2])
     {
         if (context_ != o.context_)
         {
             return false;
         }
     }
     return true;
 }
예제 #14
0
 protected override bool IsEquivalent(Cell other, Fingerprint fingerprint)
 {
     if (!base.IsEquivalent(other, fingerprint))
     {
         return false;
     }
     TimeoutEvent o = (TimeoutEvent)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (key_ != o.key_)
         {
             return false;
         }
     }
     if (touched[1])
     {
         if (intParam_ != o.intParam_)
         {
             return false;
         }
     }
     return true;
 }
예제 #15
0
 public override bool IsEquivalent(Cell other)
 {
     if (!base.IsEquivalent(other))
     {
         return false;
     }
     HeartbeatEvent o = (HeartbeatEvent)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (timestamp_ != o.timestamp_)
         {
             return false;
         }
     }
     return true;
 }
예제 #16
0
 protected override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     TimeoutEvent o = (TimeoutEvent)other;
     if (key_ != o.key_)
     {
         return false;
     }
     if (intParam_ != o.intParam_)
     {
         return false;
     }
     return true;
 }
예제 #17
0
 protected override bool IsEquivalent(Cell other, Fingerprint fingerprint)
 {
     if (!base.IsEquivalent(other, fingerprint))
     {
         return false;
     }
     return true;
 }
예제 #18
0
 public override bool IsEquivalent(Cell other)
 {
     if (!base.IsEquivalent(other))
     {
         return false;
     }
     SessionResp o = (SessionResp)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (value_ != o.value_)
         {
             return false;
         }
     }
     return true;
 }
예제 #19
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     SessionResp o = (SessionResp)other;
     if (value_ != o.value_)
     {
         return false;
     }
     return true;
 }
예제 #20
0
 public override bool IsEquivalent(Cell other)
 {
     if (!base.IsEquivalent(other))
     {
         return false;
     }
     return true;
 }
예제 #21
0
파일: Cell.cs 프로젝트: jaykang920/x2clr
 /// <summary>
 /// Determines whether the specified Cell object is equivalent to this
 /// one based on the given fingerprint.
 /// </summary>
 public bool Equivalent(Cell other, Fingerprint fingerprint)
 {
     if (!other.IsKindOf(this))
     {
         return false;
     }
     if (!fingerprint.Equivalent(other.fingerprint))
     {
         return false;
     }
     return IsEquivalent(other, fingerprint);
 }
예제 #22
0
파일: Cell.cs 프로젝트: jaykang920/x2clr
 /// <summary>
 /// Determines whether this Cell object is a kind of the specified Cell
 /// in the custom type hierarchy.
 /// </summary>
 public bool IsKindOf(Cell other)
 {
     Tag tag = GetTypeTag();
     Tag otherTag = other.GetTypeTag();
     while (tag != null)
     {
         if (tag == otherTag)
         {
             return true;
         }
         tag = tag.Base;
     }
     return false;
 }
예제 #23
0
파일: Events.cs 프로젝트: nice1378/x2clr
 public override bool IsEquivalent(Cell other)
 {
     if (!base.IsEquivalent(other))
     {
         return false;
     }
     CapitalizeResp o = (CapitalizeResp)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (result_ != o.result_)
         {
             return false;
         }
     }
     return true;
 }
예제 #24
0
파일: Cell.cs 프로젝트: jaykang920/x2clr
 /// <summary>
 /// Overridden by subclasses to build an equality test chain.
 /// </summary>
 protected virtual bool EqualsTo(Cell other)
 {
     if (GetType() != other.GetType())
     {
         return false;
     }
     return true;
 }
예제 #25
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     SampleCell2 o = (SampleCell2)other;
     if (baz_ != o.baz_)
     {
         return false;
     }
     return true;
 }
예제 #26
0
파일: Cell.cs 프로젝트: jaykang920/x2clr
 /// <summary>
 /// Overridden by subclasses to build an equivalence test chain.
 /// </summary>
 protected virtual bool IsEquivalent(Cell other, Fingerprint fingerprint)
 {
     return true;
 }
예제 #27
0
 public override bool IsEquivalent(Cell other)
 {
     if (!base.IsEquivalent(other))
     {
         return false;
     }
     SampleCell4 o = (SampleCell4)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (quux_ != o.quux_)
         {
             return false;
         }
     }
     return true;
 }
예제 #28
0
 protected override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     HelloReq o = (HelloReq)other;
     if (name_ != o.name_)
     {
         return false;
     }
     return true;
 }
예제 #29
0
 public override bool IsEquivalent(Cell other)
 {
     if (!base.IsEquivalent(other))
     {
         return false;
     }
     SampleEvent1 o = (SampleEvent1)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (foo_ != o.foo_)
         {
             return false;
         }
     }
     if (touched[1])
     {
         if (bar_ != o.bar_)
         {
             return false;
         }
     }
     return true;
 }
예제 #30
0
 protected override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     TestResp o = (TestResp)other;
     if (serial_ != o.serial_)
     {
         return false;
     }
     return true;
 }