Public Member Functions | Private Attributes

scsi_UInt16 Class Reference
[SCSI Library]

Class that behaves like a UInt16_t. More...

#include <scsi_types.h>

List of all members.

Public Member Functions

 scsi_UInt16 ()
 scsi_UInt16 (UInt16_t a_uint)
 scsi_UInt16 (const scsi_UInt16_t &a_buf)
scsi_UInt16operator= (UInt16_t a_uint)
scsi_UInt16operator= (const scsi_UInt16_t &a_buf)
 operator UInt16_t () const

Private Attributes

scsi_UInt16_t m_data

Detailed Description

Class that behaves like a UInt16_t.

Definition at line 70 of file scsi_types.h.


Constructor & Destructor Documentation

scsi_UInt16::scsi_UInt16 (  )  [inline]

Definition at line 73 of file scsi_types.h.

                         {
        //Empty
    };

scsi_UInt16::scsi_UInt16 ( UInt16_t  a_uint  )  [inline]

Definition at line 77 of file scsi_types.h.

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

scsi_UInt16::scsi_UInt16 ( const scsi_UInt16_t a_buf  )  [inline, explicit]

Definition at line 81 of file scsi_types.h.

                                                            {
        m_data[0] = a_buf[0], m_data[1] = a_buf[1];
    };


Member Function Documentation

scsi_UInt16::operator UInt16_t (  )  const [inline]

Definition at line 95 of file scsi_types.h.

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

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

Definition at line 85 of file scsi_types.h.

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

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

Definition at line 90 of file scsi_types.h.

                                                                {
        m_data[0] = a_buf[0], m_data[1] = a_buf[1];
        return (*this);
    };


Member Data Documentation

Definition at line 97 of file scsi_types.h.


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