Monarch  v3.8.2
Project 8 Data File Format Library
Public Member Functions | Private Member Functions | Private Attributes | List of all members
M2RecordDataInterface< ReturnType > Class Template Reference

#include <M2Record.hh>

Public Member Functions

 M2RecordDataInterface (const byte_type *aData, unsigned aDataTypeSize)
 
 ~M2RecordDataInterface ()
 
ReturnType at (unsigned index) const
 
void SetDataTypeSize (unsigned aDataTypeSize)
 
void SetData (const byte_type *aData)
 

Private Member Functions

ReturnType at_1_byte (unsigned index) const
 
ReturnType at_2_byte (unsigned index) const
 
ReturnType at_4_byte (unsigned index) const
 
ReturnType at_8_byte (unsigned index) const
 

Private Attributes

ReturnType(M2RecordDataInterface::* fArrayFcn )(unsigned) const
 
union {
   const byte_type *   fByteData
 
   const uint16_t *   fTwoBytesData
 
   const uint32_t *   fFourBytesData
 
   const uint64_t *   fEightBytesData
 
}; 
 

Detailed Description

template<typename ReturnType>
class monarch2::M2RecordDataInterface< ReturnType >

Definition at line 21 of file M2Record.hh.

Constructor & Destructor Documentation

◆ M2RecordDataInterface()

M2RecordDataInterface ( const byte_type aData,
unsigned  aDataTypeSize 
)
inline

Definition at line 24 of file M2Record.hh.

◆ ~M2RecordDataInterface()

~M2RecordDataInterface ( )
inline

Definition at line 29 of file M2Record.hh.

Member Function Documentation

◆ at()

ReturnType at ( unsigned  index) const
inline

Definition at line 33 of file M2Record.hh.

◆ at_1_byte()

ReturnType at_1_byte ( unsigned  index) const
inlineprivate

Definition at line 57 of file M2Record.hh.

◆ at_2_byte()

ReturnType at_2_byte ( unsigned  index) const
inlineprivate

Definition at line 62 of file M2Record.hh.

◆ at_4_byte()

ReturnType at_4_byte ( unsigned  index) const
inlineprivate

Definition at line 67 of file M2Record.hh.

◆ at_8_byte()

ReturnType at_8_byte ( unsigned  index) const
inlineprivate

Definition at line 72 of file M2Record.hh.

◆ SetData()

void SetData ( const byte_type aData)
inline

Definition at line 51 of file M2Record.hh.

◆ SetDataTypeSize()

void SetDataTypeSize ( unsigned  aDataTypeSize)
inline

Definition at line 38 of file M2Record.hh.

Member Data Documentation

◆ @10

union { ... }

◆ fArrayFcn

ReturnType(M2RecordDataInterface::* fArrayFcn) (unsigned) const
private

Definition at line 77 of file M2Record.hh.

◆ fByteData

const byte_type* fByteData

Definition at line 81 of file M2Record.hh.

◆ fEightBytesData

const uint64_t* fEightBytesData

Definition at line 84 of file M2Record.hh.

◆ fFourBytesData

const uint32_t* fFourBytesData

Definition at line 83 of file M2Record.hh.

◆ fTwoBytesData

const uint16_t* fTwoBytesData

Definition at line 82 of file M2Record.hh.


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