Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//----------------------------------------------------------------------------- // // File: globalid.inl // Copyright (C) 1994-1997 Microsoft Corporation // All rights reserved. // // // //----------------------------------------------------------------------------- inline CGlobalId::CGlobalId() { m_otObjType = otNone; DEBUGONLY(++m_UsageCounter); }
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // ctor // //----------------------------------------------------------------------------- inline CGlobalId::CGlobalId( const DBID &dbid, ObjectType ot) { m_dbid = dbid; m_otObjType = ot;
DEBUGONLY(++m_UsageCounter); }
inline CGlobalId::CGlobalId( const CGlobalId &id) { m_dbid = id.m_dbid; m_otObjType = id.m_otObjType;
DEBUGONLY(++m_UsageCounter); }
inline CGlobalId::~CGlobalId() { DEBUGONLY(--m_UsageCounter); }
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // == operator // //----------------------------------------------------------------------------- inline int CGlobalId::operator==( const CGlobalId& id) const { return (m_dbid == id.m_dbid && m_otObjType == id.m_otObjType); }
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // != operator // //----------------------------------------------------------------------------- inline int CGlobalId::operator!=( const CGlobalId& id) const { return !(m_dbid == id.m_dbid && m_otObjType == id.m_otObjType); }
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // Get the dbid // //-----------------------------------------------------------------------------
inline const DBID & CGlobalId::GetDBID() const { return m_dbid; }
inline ObjectType CGlobalId::GetObjType(void) const { return m_otObjType; }
|