Public Member Functions | Private Attributes

fsc_UInt48 Struct Reference
[File System Catalog]

#include <fsc_common.h>

List of all members.

Public Member Functions

 fsc_UInt48 ()
 fsc_UInt48 (UInt64_t a_uint)
 fsc_UInt48 (const fsc_UInt48 &a_data)
fsc_UInt48operator= (UInt64_t a_uint)
fsc_UInt48operator= (const fsc_UInt48 &a_data)
 operator UInt64_t () const

Private Attributes

fsc_UInt48_t m_data

Detailed Description

Definition at line 100 of file fsc_common.h.


Constructor & Destructor Documentation

fsc_UInt48::fsc_UInt48 (  )  [inline]

Definition at line 101 of file fsc_common.h.

{};

fsc_UInt48::fsc_UInt48 ( UInt64_t  a_uint  )  [inline]

Definition at line 103 of file fsc_common.h.

References m_data.

                                       {
        fsc_UInt48_t &buf = *reinterpret_cast<fsc_UInt48_t*>(&a_uint);
        m_data[0] = buf[0],
        m_data[1] = buf[1],
        m_data[2] = buf[2],
        m_data[3] = buf[3],
        m_data[4] = buf[4],
        m_data[5] = buf[5];
    };

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

Definition at line 113 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],
        m_data[3] = a_data.m_data[3],
        m_data[4] = a_data.m_data[4],
        m_data[5] = a_data.m_data[5];
    };


Member Function Documentation

fsc_UInt48::operator UInt64_t (  )  const [inline]

Definition at line 143 of file fsc_common.h.

References m_data.

                                      {
        UInt64_t retval(0);
        fsc_UInt48_t &buf = *(reinterpret_cast<fsc_UInt48_t*>(&retval));
        buf[0] = m_data[0],
        buf[1] = m_data[1],
        buf[2] = m_data[2],
        buf[3] = m_data[3],
        buf[4] = m_data[4],
        buf[5] = m_data[5];
        return retval;
    };

fsc_UInt48& fsc_UInt48::operator= ( UInt64_t  a_uint  )  [inline]

Definition at line 122 of file fsc_common.h.

References m_data.

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

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

Definition at line 133 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],
        m_data[3] = a_data.m_data[3],
        m_data[4] = a_data.m_data[4],
        m_data[5] = a_data.m_data[5];
        return (*this);
    };


Member Data Documentation

Definition at line 153 of file fsc_common.h.

Referenced by fsc_UInt48(), operator UInt64_t(), and operator=().


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