Public Member Functions | Private Attributes

scsi_Wrapper32 Class Reference
[SCSI Library]

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

#include <scsi_types.h>

List of all members.

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

Detailed Description

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

Definition at line 277 of file scsi_types.h.


Constructor & Destructor Documentation

scsi_Wrapper32::scsi_Wrapper32 (  )  [inline]

Definition at line 280 of file scsi_types.h.

                            : m_data_p(NULL) {
    };

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

Definition at line 283 of file scsi_types.h.

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

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

Definition at line 287 of file scsi_types.h.

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


Member Function Documentation

scsi_Wrapper32::operator UInt32_t (  )  const [inline]

Definition at line 306 of file scsi_types.h.

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

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

Definition at line 296 of file scsi_types.h.

                                                             {
        m_data_p = &a_buf;
        return (*this);
    };

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

Definition at line 301 of file scsi_types.h.

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

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

Definition at line 291 of file scsi_types.h.

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


Member Data Documentation

Definition at line 308 of file scsi_types.h.


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