2003-11-16 05:07:44 +00:00
|
|
|
//
|
|
|
|
// To avoid ValueType.Equals which is slow
|
|
|
|
//
|
2004-06-25 18:42:19 +00:00
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of version 2 of the Lesser GNU General
|
|
|
|
// Public License as published by the Free Software Foundation.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this program; if not, write to the
|
|
|
|
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
// Boston, MA 02111-1307, USA.
|
|
|
|
|
2003-11-16 05:07:44 +00:00
|
|
|
public override int GetHashCode ()
|
|
|
|
{
|
2004-02-12 21:28:42 +00:00
|
|
|
return Stamp ^ (int) _user_data ^ (int) _user_data2 ^ (int) _user_data3;
|
2003-11-16 05:07:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public override bool Equals (object o)
|
|
|
|
{
|
|
|
|
if (o == null)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
if (!(o is TreeIter))
|
|
|
|
return false;
|
|
|
|
TreeIter ti = (TreeIter) o;
|
2004-02-10 16:04:50 +00:00
|
|
|
return ti.Stamp == Stamp &&
|
2003-11-16 05:07:44 +00:00
|
|
|
ti._user_data == _user_data &&
|
|
|
|
ti._user_data2 == _user_data2 &&
|
|
|
|
ti._user_data3 == _user_data3;
|
|
|
|
}
|
2004-12-16 20:30:43 +00:00
|
|
|
|
|
|
|
internal IntPtr UserData {
|
|
|
|
get {
|
|
|
|
return _user_data;
|
|
|
|
}
|
|
|
|
set {
|
|
|
|
_user_data = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|