Lumiera  0.pre.03
»edit your freedom«
HeteroData_test Class Reference

Description

Test:
maintain a sequence of data tuples in local storage, providing pre-configured type-safe data access.
  • the initial block is just a tuple of data in local storage
  • but further extension segments can be created elsewhere and attached to an existing chain
  • a compile-time »overlay« of constructor- and accessor-functors is provided as guard rails to prevent out-of bounds access.
    See also
    lib::HeteroData
    NodeBase_test::verify_TurnoutSystem()

Definition at line 52 of file hetero-data-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void simpleUsage ()
 
void verify_Accessors ()
 
void verify_ChainBlock ()
 
void verify_FrontBlock ()
 

Member Function Documentation

◆ verify_FrontBlock()

void verify_FrontBlock ( )
inlineprivate
Test:
build a free standing data tuple block to start a chain

Definition at line 80 of file hetero-data-test.cpp.

References lib::test::showType().

+ Here is the call graph for this function:

◆ verify_ChainBlock()

void verify_ChainBlock ( )
inlineprivate
Test:
construct a follow-up data tuple block and hook it into the chain

Definition at line 109 of file hetero-data-test.cpp.

References lib::test::showType().

+ Here is the call graph for this function:

◆ verify_Accessors()

void verify_Accessors ( )
inlineprivate
Test:
demonstrate elaborate storage layout with several chain frames
  • follow-up frames shall be built using constructor types
  • these can be defined prior to any data allocation
  • individual data elements can be accessed type-safe through accessor functors
Warning
as demonstrated, this is a dangerous bare-bone memory layout without runtime checks!

Definition at line 185 of file hetero-data-test.cpp.

+ Inheritance diagram for HeteroData_test:
+ Collaboration diagram for HeteroData_test:

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