fsc_UInt24 Struct Reference
[File System Catalog]

#include <fsc_common.h>

List of all members.


Detailed Description

Definition at line 145 of file fsc_common.h.


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

Constructor & Destructor Documentation

fsc_UInt24::fsc_UInt24 (  )  [inline]

Definition at line 146 of file fsc_common.h.

00146 {};

fsc_UInt24::fsc_UInt24 ( UInt32_t  a_uint  )  [inline]

Definition at line 148 of file fsc_common.h.

References m_data.

00148                                        {
00149         fsc_UInt24_t &buf = *reinterpret_cast<fsc_UInt24_t*>(&a_uint);
00150         m_data[0] = buf[0];
00151         m_data[1] = buf[1];
00152         m_data[2] = buf[2];
00153     };

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

Definition at line 155 of file fsc_common.h.

References m_data.

00155                                                          {
00156         m_data[0] = a_data.m_data[0];
00157         m_data[1] = a_data.m_data[1];
00158         m_data[2] = a_data.m_data[2];
00159     };


Member Function Documentation

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

Definition at line 161 of file fsc_common.h.

References m_data.

00161                                                     {
00162         fsc_UInt24_t &buf = *reinterpret_cast<fsc_UInt24_t*>(&a_uint);
00163         m_data[0] = buf[0];
00164         m_data[1] = buf[1];
00165         m_data[2] = buf[2];
00166         return (*this);
00167     };

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

Definition at line 169 of file fsc_common.h.

References m_data.

00169                                                              {
00170         m_data[0] = a_data.m_data[0];
00171         m_data[1] = a_data.m_data[1];
00172         m_data[2] = a_data.m_data[2];
00173         return (*this);
00174     };

fsc_UInt24::operator UInt32_t (  )  const [inline]

Definition at line 176 of file fsc_common.h.

References m_data.

00176                                       {
00177         UInt32_t retval;
00178         fsc_UInt24_t &buf = *(reinterpret_cast<fsc_UInt24_t*>(&retval));
00179         buf[0] = m_data[0];
00180         buf[1] = m_data[1];
00181         buf[2] = m_data[2];
00182         buf[3] = 0;
00183         return retval;
00184     };


Member Data Documentation

Definition at line 184 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:

Generated on Mon Feb 27 19:24:53 2012 for OPENARCHIVE by  doxygen 1.5.6