scsi_Wrapper16 Class Reference
[SCSI Library]

#include <scsi_types.h>

List of all members.


Detailed Description

Class thatis a wrapper around scsi_UInt16_t and behaves like a UInt16_t.

Definition at line 90 of file scsi_types.h.


Public Member Functions

 scsi_Wrapper16 ()
 scsi_Wrapper16 (UInt16_t a_uint)
 scsi_Wrapper16 (const scsi_UInt16_t &a_buf)
scsi_Wrapper16operator= (UInt16_t a_uint)
scsi_Wrapper16operator= (scsi_UInt16_t &a_buf)
scsi_Wrapper16operator= (const scsi_UInt16_t &a_buf)
 operator UInt16_t () const

Private Attributes

scsi_UInt16_tm_data_p

Constructor & Destructor Documentation

scsi_Wrapper16::scsi_Wrapper16 (  )  [inline]

Definition at line 93 of file scsi_types.h.

00093                             : m_data_p(NULL) {
00094     };

scsi_Wrapper16::scsi_Wrapper16 ( UInt16_t  a_uint  )  [inline, explicit]

Definition at line 96 of file scsi_types.h.

00096                                                     {
00097         UInt16_t* data_p = reinterpret_cast<UInt16_t*>(*m_data_p); *data_p = a_uint;
00098     };

scsi_Wrapper16::scsi_Wrapper16 ( const scsi_UInt16_t a_buf  )  [inline]

Definition at line 100 of file scsi_types.h.

00101       : m_data_p(const_cast<scsi_UInt16_t*>(&a_buf)) {
00102     };


Member Function Documentation

scsi_Wrapper16& scsi_Wrapper16::operator= ( UInt16_t  a_uint  )  [inline]

Definition at line 104 of file scsi_types.h.

00104                                                         {
00105         UInt16_t* data_p = reinterpret_cast<UInt16_t*>(*m_data_p); *data_p = a_uint;
00106         return (*this);
00107     };

scsi_Wrapper16& scsi_Wrapper16::operator= ( scsi_UInt16_t a_buf  )  [inline]

Definition at line 109 of file scsi_types.h.

00109                                                              {
00110         m_data_p = &a_buf;
00111         return (*this);
00112     };

scsi_Wrapper16& scsi_Wrapper16::operator= ( const scsi_UInt16_t a_buf  )  [inline]

Definition at line 114 of file scsi_types.h.

00114                                                                    {
00115         m_data_p = const_cast<scsi_UInt16_t*>(&a_buf);
00116         return (*this);
00117     };

scsi_Wrapper16::operator UInt16_t (  )  const [inline]

Definition at line 119 of file scsi_types.h.

00119                                       {
00120         return *(reinterpret_cast<const UInt16_t*>(*m_data_p));
00121     };


Member Data Documentation

Definition at line 121 of file scsi_types.h.


The documentation for this class was generated from the following file:

Generated on Mon Feb 27 19:50:24 2012 for OPENARCHIVE by  doxygen 1.5.6