| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DayaBay::HardwareId Class Reference

#include <Hardware.h>

Inheritance diagram for DayaBay::HardwareId:

[legend]
List of all members.

Public Member Functions

 HardwareId ()
 HardwareId (int data)
 HardwareId (unsigned int id, Hardware::Hardware_t hardware)
HardwareIdoperator= (const HardwareId &id)
virtual ~HardwareId ()
int fullPackedData () const
Hardware::Hardware_t type () const
int id () const
bool operator== (const HardwareId &rhs) const
bool operator!= (const HardwareId &rhs) const

Protected Attributes

unsigned int m_data

Detailed Description

Definition at line 42 of file Hardware.h.


Constructor & Destructor Documentation

DayaBay::HardwareId::HardwareId (  )  [inline]

Definition at line 44 of file Hardware.h.

00044 : m_data(0) {}

DayaBay::HardwareId::HardwareId ( int  data  )  [inline]

Definition at line 46 of file Hardware.h.

00046 { m_data = data; }

DayaBay::HardwareId::HardwareId ( unsigned int  id,
Hardware::Hardware_t  hardware 
) [inline]

Definition at line 48 of file Hardware.h.

00049       { m_data = (hardware << 24) | (0x00ffffff & id); }

DayaBay::HardwareId::~HardwareId (  )  [virtual]

Definition at line 39 of file Hardware.cc.

00040 {
00041 }


Member Function Documentation

HardwareId& DayaBay::HardwareId::operator= ( const HardwareId id  )  [inline]

Definition at line 51 of file Hardware.h.

00052       { m_data = id.m_data; return *this; }

int DayaBay::HardwareId::fullPackedData (  )  const [inline]

Definition at line 60 of file Hardware.h.

00060 { return m_data; }

Hardware::Hardware_t DayaBay::HardwareId::type (  )  const [inline]

Definition at line 63 of file Hardware.h.

00064       { return (Hardware::Hardware_t)((m_data&0xff000000)>>24); }

int DayaBay::HardwareId::id (  )  const [inline]

Reimplemented in DayaBay::PmtHardwareId.

Definition at line 66 of file Hardware.h.

00066 { return (m_data & 0x00ffffff); }

bool DayaBay::HardwareId::operator== ( const HardwareId rhs  )  const [inline]

Definition at line 69 of file Hardware.h.

00069 { return this->m_data == rhs.m_data; }

bool DayaBay::HardwareId::operator!= ( const HardwareId rhs  )  const [inline]

Definition at line 70 of file Hardware.h.

00070 { return !(*this == rhs); }


Member Data Documentation

unsigned int DayaBay::HardwareId::m_data [protected]

Definition at line 73 of file Hardware.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:14:49 2011 for Conventions by doxygen 1.4.7