EFI(Extensible Firmware Interface)是下一代BIOS

源代码在线查看: object.cxx

软件大小: 1215 K
上传用户: pjamytian
关键词: Extensible Interface Firmware BIOS
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*++
				
				Copyright (c) 1990-1999 Microsoft Corporation
				
				Module Name:
				
				    object.cxx
				
				Abstract:
				
				    This module contains the definitions for the non-inline member functions
				    for the class OBJECT, the root of the Ulib hierarchy. OBJECT's
				    constructor merely initializes it's internal CLASS_DESCRIPTOR to point
				    to the static descriptor for the class at the beginning of this
				    construction chain.
				
				Environment:
				
				    ULIB, User Mode
				
				[Notes:]
				
				    optional-notes
				
				--*/
				#include 
				
				#define _ULIB_MEMBER_
				
				#include "ulib.hxx"
				
				OBJECT::OBJECT(
				    )
				{
				}
				
				OBJECT::~OBJECT(
				    )
				{
				}
				
				
				LONG
				OBJECT::Compare (
				    IN PCOBJECT Object
				    ) CONST
				
				/*++
				
				Routine Description:
				
				    Compare two objects based on their CLASS_ID's
				
				Arguments:
				
				    Object - Supplies the object to compare with.
				
				Return Value:
				
				    LONG     < 0    - supplied OBJECT has a higher CLASS_ID
				            == 0    - supplied object has same CLASS_ID
				             > 0    - supplied OBJECT has a lower CLASS_ID
				
				Notes:
				
				    It is expected that derived classes will overload this method and supply
				    an implementation that is more meaningful (i.e. class specific). This
				    implementation is ofeered as a default but is fairly meaningless as
				    CLASS_IDs are allocated randomly (but uniquely) at run-time by
				    CLASS_DESCRIPTORs. Therefore comparing two CLASS_IDs is not very
				    interesting (e.g. it will help if an ORDERED_CONTAINER of homogenous
				    objects is sorted).
				
				--*/
				
				{
				    LONG    r;
				
				    DebugPtrAssert( Object );
				
				    r = (LONG)(QueryClassId() - Object->QueryClassId());
				
				    return r ? r : (LONG)(this - Object);
				}
				
				
				DEFINE_OBJECT_DBG_FUNCTIONS;
							

相关资源