Free Electron
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
fe::WeakRecordSB Class Reference

Non-persistent reference to an instance of a Layout. More...

#include <WeakRecordSB.h>

Public Member Functions

 WeakRecordSB (I32 ignored=0)
 
 WeakRecordSB (const RecordSB &other)
 
 WeakRecordSB (const WeakRecordSB &other)
 
 operator RecordSB (void)
 
WeakRecordSBoperator= (const WeakRecordSB &other)
 
bool operator== (const WeakRecordSB &other) const
 
bool operator!= (const WeakRecordSB &other) const
 
bool isValid (void) const
 Return true if the record points to the original valid state block. More...
 
void set (void *datablock)
 Set the state block. More...
 
FE_UWORD idr (void) const
 Return the state block. More...
 
const sp< LayoutSB > & layout (void) const
 Return the Layout. More...
 
void demandSerialNumber (void) const
 throw if the record doesn't have a serial number More...
 
template<class T >
T & accessAttribute (FE_UWORD aLocator) const
 
void * rawAttribute (FE_UWORD aLocator) const
 

Private Member Functions

void * data (void) const
 
LayoutSBrawLayout (void) const
 Return a raw pointer to the Layout. More...
 
void cacheSerialNumber (void)
 
I32 readSerialNumber (void) const
 

Private Attributes

sp< LayoutSBm_spLayout
 
void * m_pStateBlock
 
I32 m_serialNumber
 
U32 m_serialOffset
 

Friends

class RecordArraySB
 

Detailed Description

Non-persistent reference to an instance of a Layout.

Member Function Documentation

◆ demandSerialNumber()

void fe::WeakRecordSB::demandSerialNumber ( void  ) const

throw if the record doesn't have a serial number

References isValid().

◆ idr()

FE_UWORD fe::WeakRecordSB::idr ( void  ) const
inline

Return the state block.

◆ isValid()

bool fe::WeakRecordSB::isValid ( void  ) const
inline

Return true if the record points to the original valid state block.

A record without the ":SN" field can never be confirmed as valid. You may be able access it if you are sure it still exists by other means.

Referenced by demandSerialNumber().

◆ layout()

const sp< LayoutSB > & fe::WeakRecordSB::layout ( void  ) const
inline

Return the Layout.

◆ rawLayout()

LayoutSB * fe::WeakRecordSB::rawLayout ( void  ) const
inlineprivate

Return a raw pointer to the Layout.

Mainly intended for Accessor for speed.

◆ set()

void fe::WeakRecordSB::set ( void *  datablock)
inline

Set the state block.


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