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

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

#include <WeakRecordAV.h>

Public Member Functions

 WeakRecordAV (I32 ignored=0)
 
 WeakRecordAV (const RecordAV &other)
 
 WeakRecordAV (const WeakRecordAV &other)
 
 operator RecordAV (void)
 
WeakRecordAVoperator= (const WeakRecordAV &other)
 
bool operator== (const WeakRecordAV &other) const
 
bool operator!= (const WeakRecordAV &other) const
 
bool isValid (void) const
 Return true if the record points to the original valid state block. More...
 
FE_UWORD idr (void) const
 
const sp< LayoutAV > & 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

LayoutAVrawLayout (void) const
 Return a raw pointer to the Layout. More...
 
void set (FE_UWORD aArrayIndex, sp< LayoutAV > &aLayout)
 
void cacheSerialNumber (void)
 
I32 readSerialNumber (void) const
 

Private Attributes

sp< LayoutAVm_hpLayout
 
FE_UWORD m_arrayIndex
 
I32 m_serialNumber
 
U32 m_serialLocator
 

Friends

class Scope
 
class RecordArrayAV
 

Detailed Description

Non-persistent reference to an instance of a Layout.

Member Function Documentation

◆ demandSerialNumber()

void fe::WeakRecordAV::demandSerialNumber ( void  ) const

throw if the record doesn't have a serial number

References isValid().

◆ isValid()

bool fe::WeakRecordAV::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< LayoutAV > & fe::WeakRecordAV::layout ( void  ) const
inline

Return the Layout.

◆ rawLayout()

LayoutAV * fe::WeakRecordAV::rawLayout ( void  ) const
inlineprivate

Return a raw pointer to the Layout.

Mainly intended for Accessor for speed.


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