Public Member Functions | Private Attributes

scsi_Wrapper16 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_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

Detailed Description

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

Definition at line 104 of file scsi_types.h.


Constructor & Destructor Documentation

scsi_Wrapper16::scsi_Wrapper16 (  )  [inline]

Definition at line 107 of file scsi_types.h.

                            : m_data_p(NULL) {
    };

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

Definition at line 110 of file scsi_types.h.

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

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

Definition at line 114 of file scsi_types.h.

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


Member Function Documentation

scsi_Wrapper16::operator UInt16_t (  )  const [inline]

Definition at line 133 of file scsi_types.h.

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

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

Definition at line 123 of file scsi_types.h.

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

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

Definition at line 128 of file scsi_types.h.

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

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

Definition at line 118 of file scsi_types.h.

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


Member Data Documentation

Definition at line 135 of file scsi_types.h.


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