Public Member Functions | Private Attributes

fsc_UInt24 Struct Reference
[File System Catalog]

#include <fsc_common.h>

List of all members.

Public Member Functions

 fsc_UInt24 ()
 fsc_UInt24 (UInt32_t a_uint)
 fsc_UInt24 (const fsc_UInt24 &a_data)
fsc_UInt24operator= (UInt32_t a_uint)
fsc_UInt24operator= (const fsc_UInt24 &a_data)
 operator UInt32_t () const

Private Attributes

fsc_UInt24_t m_data

Detailed Description

Definition at line 159 of file fsc_common.h.


Constructor & Destructor Documentation

fsc_UInt24::fsc_UInt24 (  )  [inline]

Definition at line 160 of file fsc_common.h.

{};

fsc_UInt24::fsc_UInt24 ( UInt32_t  a_uint  )  [inline]

Definition at line 162 of file fsc_common.h.

References m_data.

                                       {
        fsc_UInt24_t &buf = *reinterpret_cast<fsc_UInt24_t*>(&a_uint);
        m_data[0] = buf[0];
        m_data[1] = buf[1];
        m_data[2] = buf[2];
    };

fsc_UInt24::fsc_UInt24 ( const fsc_UInt24 a_data  )  [inline, explicit]

Definition at line 169 of file fsc_common.h.

References m_data.

                                                         {
        m_data[0] = a_data.m_data[0];
        m_data[1] = a_data.m_data[1];
        m_data[2] = a_data.m_data[2];
    };


Member Function Documentation

fsc_UInt24::operator UInt32_t (  )  const [inline]

Definition at line 190 of file fsc_common.h.

References m_data.

                                      {
        UInt32_t retval;
        fsc_UInt24_t &buf = *(reinterpret_cast<fsc_UInt24_t*>(&retval));
        buf[0] = m_data[0];
        buf[1] = m_data[1];
        buf[2] = m_data[2];
        buf[3] = 0;
        return retval;
    };

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

Definition at line 175 of file fsc_common.h.

References m_data.

                                                    {
        fsc_UInt24_t &buf = *reinterpret_cast<fsc_UInt24_t*>(&a_uint);
        m_data[0] = buf[0];
        m_data[1] = buf[1];
        m_data[2] = buf[2];
        return (*this);
    };

fsc_UInt24& fsc_UInt24::operator= ( const fsc_UInt24 a_data  )  [inline]

Definition at line 183 of file fsc_common.h.

References m_data.

                                                             {
        m_data[0] = a_data.m_data[0];
        m_data[1] = a_data.m_data[1];
        m_data[2] = a_data.m_data[2];
        return (*this);
    };


Member Data Documentation

Definition at line 198 of file fsc_common.h.

Referenced by fsc_UInt24(), operator UInt32_t(), and operator=().


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