scsi_Wrapper32 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 263 of file scsi_types.h.


Public Member Functions

 scsi_Wrapper32 ()
 scsi_Wrapper32 (UInt32_t a_uint)
 scsi_Wrapper32 (const scsi_UInt32_t &a_buf)
scsi_Wrapper32operator= (UInt32_t a_uint)
scsi_Wrapper32operator= (scsi_UInt32_t &a_buf)
scsi_Wrapper32operator= (const scsi_UInt32_t &a_buf)
 operator UInt32_t () const

Private Attributes

scsi_UInt32_tm_data_p

Constructor & Destructor Documentation

scsi_Wrapper32::scsi_Wrapper32 (  )  [inline]

Definition at line 266 of file scsi_types.h.

00266                             : m_data_p(NULL) {
00267     };

scsi_Wrapper32::scsi_Wrapper32 ( UInt32_t  a_uint  )  [inline, explicit]

Definition at line 269 of file scsi_types.h.

00269                                                     {
00270         UInt32_t* data_p = reinterpret_cast<UInt32_t*>(*m_data_p); *data_p = a_uint;
00271     };

scsi_Wrapper32::scsi_Wrapper32 ( const scsi_UInt32_t a_buf  )  [inline]

Definition at line 273 of file scsi_types.h.

00274       : m_data_p(const_cast<scsi_UInt32_t*>(&a_buf)) {
00275     };


Member Function Documentation

scsi_Wrapper32& scsi_Wrapper32::operator= ( UInt32_t  a_uint  )  [inline]

Definition at line 277 of file scsi_types.h.

00277                                                         {
00278         UInt32_t* data_p = reinterpret_cast<UInt32_t*>(*m_data_p); *data_p = a_uint;
00279         return (*this);
00280     };

scsi_Wrapper32& scsi_Wrapper32::operator= ( scsi_UInt32_t a_buf  )  [inline]

Definition at line 282 of file scsi_types.h.

00282                                                              {
00283         m_data_p = &a_buf;
00284         return (*this);
00285     };

scsi_Wrapper32& scsi_Wrapper32::operator= ( const scsi_UInt32_t a_buf  )  [inline]

Definition at line 287 of file scsi_types.h.

00287                                                                    {
00288         m_data_p = const_cast<scsi_UInt32_t*>(&a_buf);
00289         return (*this);
00290     };

scsi_Wrapper32::operator UInt32_t (  )  const [inline]

Definition at line 292 of file scsi_types.h.

00292                                       {
00293         return *(reinterpret_cast<const UInt32_t*>(*m_data_p));
00294     };


Member Data Documentation

Definition at line 294 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