<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">###############################################################################
#
#   Package: NaturalDocs::SourceDB::ItemDefinition
#
###############################################################################
#
#   A base class for all item definitions for extensions that track more than existence.
#
###############################################################################

# This file is part of Natural Docs, which is Copyright (C) 2003-2008 Greg Valure
# Natural Docs is licensed under the GPL

use strict;
use integer;


package NaturalDocs::SourceDB::ItemDefinition;


#
#   Function: Compare
#
#   Returns whether the definitions are equal.  This version returns true by default, you must override it in your subclasses
#   to make the results relevant.  This is important for &lt;NaturalDocs::SourceDB-&gt;AnalyzeTrackedFileChanges()&gt;.
#
#   This will only be called between objects of the same &lt;ExtensionID&gt;.  If you use multiple derived classes for the same
#   &lt;ExtensionID&gt;, you will have to take that into account yourself.
#
#   Parameters:
#
#       other - Another &lt;NaturalDocs::SourceDB::ItemDefinition&gt;-derived object to compare this one to.  It will always be from
#                  the same &lt;ExtensionID&gt;.
#
#   Returns:
#
#       Whether they are equal.
#
sub Compare #(other)
    {
    return 1;
    };


1;
</pre></body></html>