Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
TestFrame::Meta Struct Reference

Description

Definition at line 78 of file testframe.hpp.

Public Attributes

HashVal _MARK_
 
HashVal checksum
 
uint64_t distinction
 
StageOfLife stage
 

Public Member Functions

 Meta (uint seq, uint family)
 
bool isPlausible () const
 Sanity check on the metadata header.
 
bool operator== (Meta const &) const
 

Constructor & Destructor Documentation

◆ Meta()

Meta ( uint  seq,
uint  family 
)

Definition at line 216 of file testframe.cpp.

Member Function Documentation

◆ isPlausible()

bool isPlausible ( ) const

Sanity check on the metadata header.

Remarks
Relevant to detect memory corruption or when accessing some arbitrary memory location, which may or may not actually hold a TestFrame. Based on the assumption that it is unlikely that any given memory location just happens to hold our marker word by accident.
Note
this is only the base level of verification, because in addition isValid verifies the checksum and isPristine additionally recomputes the data generation to see if it matches the Meta::distinction.

Definition at line 271 of file testframe.cpp.

References TestFrame::Meta::_MARK_, and TestFrame::DISCARDED.

Referenced by TestFrame::accessHeader(), TestFrame::currStage(), TestFrame::isSane(), and TestFrame::Meta::operator==().

+ Here is the caller graph for this function:

◆ operator==()

bool operator== ( Meta const &  o) const

Definition at line 298 of file testframe.cpp.

References TestFrame::Meta::checksum, TestFrame::Meta::distinction, TestFrame::Meta::isPlausible(), and TestFrame::Meta::stage.

+ Here is the call graph for this function:

Member Data Documentation

◆ _MARK_

HashVal _MARK_

Definition at line 80 of file testframe.hpp.

Referenced by TestFrame::Meta::isPlausible().

◆ checksum

◆ distinction

uint64_t distinction

Definition at line 82 of file testframe.hpp.

Referenced by TestFrame::TestFrame(), and TestFrame::Meta::operator==().

◆ stage

+ Collaboration diagram for TestFrame::Meta:

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