Public Member Functions | Private Attributes

scsi_UInt32 Class Reference
[SCSI Library]

Class that behaves like a UInt32_t. More...

#include <scsi_types.h>

List of all members.

Public Member Functions

 scsi_UInt32 ()
 scsi_UInt32 (UInt32_t a_uint)
 scsi_UInt32 (const scsi_UInt32_t &a_buf)
scsi_UInt32operator= (UInt32_t a_uint)
scsi_UInt32operator= (const scsi_UInt32_t &a_buf)
 operator UInt32_t () const

Private Attributes

scsi_UInt32_t m_data

Detailed Description

Class that behaves like a UInt32_t.

Definition at line 241 of file scsi_types.h.


Constructor & Destructor Documentation

scsi_UInt32::scsi_UInt32 (  )  [inline]

Definition at line 244 of file scsi_types.h.

                         {
        //Empty
    };

scsi_UInt32::scsi_UInt32 ( UInt32_t  a_uint  )  [inline]

Definition at line 248 of file scsi_types.h.

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

scsi_UInt32::scsi_UInt32 ( const scsi_UInt32_t a_buf  )  [inline, explicit]

Definition at line 252 of file scsi_types.h.

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


Member Function Documentation

scsi_UInt32::operator UInt32_t (  )  const [inline]

Definition at line 268 of file scsi_types.h.

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

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

Definition at line 257 of file scsi_types.h.

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

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

Definition at line 262 of file scsi_types.h.

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


Member Data Documentation

Definition at line 270 of file scsi_types.h.


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