Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
BranchCase_test Class Reference

Description

Test:
verify a Sum Type to hold alternative model types for several result branches of an evaluation.
See also
parse.hpp "usage example"

Definition at line 37 of file branch-case-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void simpleUsage ()
 
void demonstrateStorage ()
 
void verifyCopyAssignment ()
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 41 of file branch-case-test.cpp.

References BranchCase_test::demonstrateStorage(), BranchCase_test::simpleUsage(), and BranchCase_test::verifyCopyAssignment().

+ Here is the call graph for this function:

◆ simpleUsage()

void simpleUsage ( )
inlineprivate
Test:
create one alternative and access embedded model value.

Definition at line 51 of file branch-case-test.cpp.

Referenced by BranchCase_test::run().

+ Here is the caller graph for this function:

◆ demonstrateStorage()

void demonstrateStorage ( )
inlineprivate
Test:
demonstrate expected storage layout...
  • the selector field always coincides with the object itself
  • the storage buffer starts after the size_t selector

Definition at line 71 of file branch-case-test.cpp.

Referenced by BranchCase_test::run().

+ Here is the caller graph for this function:

◆ verifyCopyAssignment()

void verifyCopyAssignment ( )
inlineprivate
Test:
verify selector and payload instances are properly handled on copy, clone, assignment and swap.

Definition at line 100 of file branch-case-test.cpp.

References Dummy::checksum(), Dummy::DEFUNCT, Dummy::getVal(), and util::toString().

Referenced by BranchCase_test::run().

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

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