NLMISC::CClassId Class Reference

#include <class_id.h>

Inheritance diagram for NLMISC::CClassId:

NLMISC::CEvent NLMISC::CEventActivate NLMISC::CEventDestroyWindow NLMISC::CEventKey NLMISC::CEventMouse NLMISC::CEventSetFocus NLMISC::CGameDeviceEvent NLMISC::CGDMouseMove NLMISC::CEventChar NLMISC::CEventKeyDown NLMISC::CEventKeyUp NLMISC::CEventMouseDblClk NLMISC::CEventMouseDown NLMISC::CEventMouseMove NLMISC::CEventMouseUp NLMISC::CEventMouseWheel NLMISC::CGDAxisMoved NLMISC::CGDButton NLMISC::CGDPOVChanged NLMISC::CGDSliderMoved

Detailed Description

A unique id to specify Object by a uint64. The Deriver should use a Max-like Id generator, to identify his own object.
Author:
Lionel Berenguier

Nevrax France

Date:
2000

Definition at line 44 of file class_id.h.

Public Member Functions

 CClassId (uint64 a)
 CClassId (uint32 a, uint32 b)
 CClassId ()
 operator uint64 () const
bool operator!= (const CClassId &o) const
bool operator< (const CClassId &o) const
bool operator<= (const CClassId &o) const
bool operator== (const CClassId &o) const
bool operator> (const CClassId &o) const
bool operator>= (const CClassId &o) const

Static Public Attributes

const CClassId Null

Private Attributes

uint64 Uid


Constructor & Destructor Documentation

NLMISC::CClassId::CClassId  )  [inline]
 

Definition at line 52 of file class_id.h.

References Uid.

00052 {Uid=0;}

NLMISC::CClassId::CClassId uint32  a,
uint32  b
[inline]
 

Definition at line 53 of file class_id.h.

References Uid, uint32, and uint64.

00053 {Uid= ((uint64)a<<32) | b;}

NLMISC::CClassId::CClassId uint64  a  )  [inline]
 

Definition at line 54 of file class_id.h.

References Uid, and uint64.

00054 {Uid=a;}


Member Function Documentation

NLMISC::CClassId::operator uint64  )  const [inline]
 

Definition at line 62 of file class_id.h.

References Uid.

00062 {return Uid;}

bool NLMISC::CClassId::operator!= const CClassId o  )  const [inline]
 

Definition at line 56 of file class_id.h.

References Uid.

00056 {return Uid!=o.Uid;}

bool NLMISC::CClassId::operator< const CClassId o  )  const [inline]
 

Definition at line 59 of file class_id.h.

References Uid.

00059 {return Uid<o.Uid;}

bool NLMISC::CClassId::operator<= const CClassId o  )  const [inline]
 

Definition at line 57 of file class_id.h.

References Uid.

00057 {return Uid<=o.Uid;}

bool NLMISC::CClassId::operator== const CClassId o  )  const [inline]
 

Definition at line 55 of file class_id.h.

References Uid.

00055 {return Uid==o.Uid;}

bool NLMISC::CClassId::operator> const CClassId o  )  const [inline]
 

Definition at line 60 of file class_id.h.

References Uid.

00060 {return Uid>o.Uid;}

bool NLMISC::CClassId::operator>= const CClassId o  )  const [inline]
 

Definition at line 58 of file class_id.h.

References Uid.

00058 {return Uid>=o.Uid;}


Field Documentation

const CClassId NLMISC::CClassId::Null [static]
 

uint64 NLMISC::CClassId::Uid [private]
 

Definition at line 46 of file class_id.h.

Referenced by CClassId(), operator uint64(), operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 13:06:11 2004 for NeL by doxygen 1.3.6