Example #1
0
 public override bool Equals(object aObject)
 {
     if (aObject != null && aObject is SymbolCollection)
     {
         SymbolCollection col = (SymbolCollection)aObject;
         bool             ret = (col.FileName == this.FileName);
         return(ret);
     }
     //
     return(base.Equals(aObject));
 }
Example #2
0
 internal static Symbol NewTemp( SymbolCollection aCollection, uint aAddress )
 {
     Symbol ret = new Symbol( aCollection );
     //
     ret.Size = 0;
     ret.OffsetAddress = aAddress - aCollection.BaseAddress;
     ret.iName = InternedName.NewExplicit( "TempInternal" );
     ret.Object = "TempInternal";
     //
     return ret;
 }
Example #3
0
 internal static Symbol NewDefault( SymbolCollection aCollection )
 {
     Symbol ret = new Symbol( aCollection );
     //
     ret.IsDefault = true;
     ret.Size = 0;
     ret.OffsetAddress = SymbolConstants.KNullEntryAddress;
     ret.Object = SymbolConstants.KNonMatchingObjectName;
     ret.iName = InternedName.NewExplicit( SymbolConstants.KNonMatchingInternedName );
     //
     return ret;
 }
Example #4
0
        public int CompareTo(SymbolCollection aCollection)
        {
            int ret = (aCollection.FileName == this.FileName) ? 0 : -1;

            //
            if (ret == 0)
            {
                if (BaseAddress == aCollection.BaseAddress)
                {
                    ret = 0;
                }
                else if (BaseAddress > aCollection.BaseAddress)
                {
                    ret = 1;
                }
                else
                {
                    ret = -1;
                }
            }
            //
            return(ret);
        }
Example #5
0
        public static SymbolCollection NewByHostFileName(IPlatformIdAllocator aIdAllocator, string aFileName)
        {
            SymbolCollection ret = new SymbolCollection(aIdAllocator, aFileName);

            return(ret);
        }
Example #6
0
        public static SymbolCollection NewCopy(IPlatformIdAllocator aIdAllocator, SymbolCollection aCollection)
        {
            SymbolCollection ret = new SymbolCollection(aIdAllocator, aCollection);

            return(ret);
        }
Example #7
0
        public static SymbolCollection New(IPlatformIdAllocator aIdAllocator, string aFileNameInHost, string aFileNameInDevice)
        {
            SymbolCollection ret = new SymbolCollection(aIdAllocator, aFileNameInHost, aFileNameInDevice);

            return(ret);
        }
Example #8
0
 internal static Symbol NewClone( SymbolCollection aCollection, Symbol aSymbol )
 {
     return new Symbol( aCollection, aSymbol );
 }
Example #9
0
 public static Symbol New( SymbolCollection aCollection )
 {
     return new Symbol( aCollection );
 }
Example #10
0
 public AddressCollectionPair(AddressRange aRange, SymbolCollection aCollection)
 {
     iRange      = aRange;
     iCollection = aCollection;
 }