~ubuntu-branches/ubuntu/trusty/smuxi/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/db4o-net/Db4objects.Db4o.NativeQueries/Db4objects.Db4o.NativeQueries/Expr/Cmp/Operand/ComparisonOperandDescendant.cs

  • Committer: Package Import Robot
  • Author(s): Mirco Bauer
  • Date: 2013-05-25 22:11:31 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20130525221131-nd2mc0kzubuwyx20
Tags: 0.8.11-1
* [22d13d5] Imported Upstream version 0.8.11
* [6d2b95a] Refreshed patches
* [89eb66e] Added ServiceStack libraries to smuxi-engine package
* [848ab10] Enable Campfire engine
* [c6dbdc7] Always build db4o for predictable build result
* [13ec489] Exclude OS X specific libraries from dh_clideps

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2004 - 2009  Versant Inc.  http://www.db4o.com */
2
 
 
3
 
using Db4objects.Db4o.Instrumentation.Api;
4
 
using Db4objects.Db4o.NativeQueries.Expr.Cmp.Operand;
5
 
 
6
 
namespace Db4objects.Db4o.NativeQueries.Expr.Cmp.Operand
7
 
{
8
 
        public abstract class ComparisonOperandDescendant : IComparisonOperandAnchor
9
 
        {
10
 
                private IComparisonOperandAnchor _parent;
11
 
 
12
 
                protected ComparisonOperandDescendant(IComparisonOperandAnchor _parent)
13
 
                {
14
 
                        this._parent = _parent;
15
 
                }
16
 
 
17
 
                public IComparisonOperandAnchor Parent()
18
 
                {
19
 
                        return _parent;
20
 
                }
21
 
 
22
 
                public IComparisonOperandAnchor Root()
23
 
                {
24
 
                        return _parent.Root();
25
 
                }
26
 
 
27
 
                public abstract ITypeRef Type
28
 
                {
29
 
                        get;
30
 
                }
31
 
 
32
 
                public override bool Equals(object obj)
33
 
                {
34
 
                        if (this == obj)
35
 
                        {
36
 
                                return true;
37
 
                        }
38
 
                        if (obj == null || GetType() != obj.GetType())
39
 
                        {
40
 
                                return false;
41
 
                        }
42
 
                        Db4objects.Db4o.NativeQueries.Expr.Cmp.Operand.ComparisonOperandDescendant casted
43
 
                                 = (Db4objects.Db4o.NativeQueries.Expr.Cmp.Operand.ComparisonOperandDescendant)obj;
44
 
                        return _parent.Equals(casted._parent);
45
 
                }
46
 
 
47
 
                public override int GetHashCode()
48
 
                {
49
 
                        return _parent.GetHashCode();
50
 
                }
51
 
 
52
 
                public override string ToString()
53
 
                {
54
 
                        return _parent.ToString();
55
 
                }
56
 
 
57
 
                public abstract void Accept(IComparisonOperandVisitor arg1);
58
 
        }
59
 
}