Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
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_FrontBlock ()
 
void verify_ChainBlock ()
 
void verify_Accessors ()
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

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

References HeteroData_test::simpleUsage(), HeteroData_test::verify_Accessors(), HeteroData_test::verify_ChainBlock(), and HeteroData_test::verify_FrontBlock().

+ Here is the call graph for this function:

◆ simpleUsage()

void simpleUsage ( )
inlineprivate

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

Referenced by HeteroData_test::run().

+ Here is the caller graph for this function:

◆ 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 _, and lib::test::showType().

Referenced by HeteroData_test::run().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by HeteroData_test::run().

+ Here is the call graph for this function:
+ Here is the caller 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 through type-safe 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.

Referenced by HeteroData_test::run().

+ Here is the caller graph for this function:
+ Inheritance diagram for HeteroData_test:
+ Collaboration diagram for HeteroData_test:

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