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

Description

Test:
Verify properties of a special collection type shaped for external representation of object-like data.
  • GenNode elements can be created "right away", picking up the given type, assumed that the payload is one of the supported basic types.
  • optionally, GenNode elements can be named
  • unnamed elements get a marker ID plus unique number extension
  • object-like elements can be represented by using a diff:Record<GenNode> as payload. Obviously, the resulting data structure type is recursive.
  • a shortcut is provided to simplify defining empty baseline objects
  • a special notation is provided to create "id references", which can be used to stand-in for an "object" (Record). This shortcut notation is relevant for the tree diff language – used within Lumiera as "External Tree Description" of object networks.
See also
IndexTable
DiffListApplication_test

Definition at line 82 of file gen-node-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void simpleUsage ()
 
void objectShortcut ()
 
void symbolReference ()
 
void sequenceIteration ()
 
void equalityMatch ()
 
void convenienceRecAccess ()
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 86 of file gen-node-test.cpp.

References GenNode_test::convenienceRecAccess(), GenNode_test::equalityMatch(), GenNode_test::objectShortcut(), GenNode_test::sequenceIteration(), GenNode_test::simpleUsage(), and GenNode_test::symbolReference().

+ Here is the call graph for this function:

◆ simpleUsage()

void simpleUsage ( )
inlineprivate

Definition at line 98 of file gen-node-test.cpp.

References GenNode::data, DataCap::get(), Record< VAL >::get(), BareEntryID::getSym(), Record< VAL >::getType(), GenNode::idi, GenNode::isNamed(), lib::diff::renderCompact(), and VERIFY_ERROR.

Referenced by GenNode_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ objectShortcut()

void objectShortcut ( )
inlineprivate

Definition at line 147 of file gen-node-test.cpp.

References Record< VAL >::Mutator::appendChild(), Record< VAL >::Mutator::attrib(), GenNode::data, TimeSpan::end(), Record< VAL >::Mutator::genNode(), DataCap::get(), Record< VAL >::get(), Record< VAL >::getType(), Record< VAL >::Mutator::scope(), and Record< VAL >::Mutator::type().

Referenced by GenNode_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ symbolReference()

void symbolReference ( )
inlineprivate

Definition at line 222 of file gen-node-test.cpp.

References Record< VAL >::Mutator::attrib(), Ref::ATTRIBS, Ref::CHILD, GenNode::data, Ref::END, Record< VAL >::Mutator::genNode(), DataCap::get(), Record< VAL >::get(), BareEntryID::getHash(), BareEntryID::getSym(), GenNode::idi, Ref::THIS, Record< VAL >::Mutator::type(), and VERIFY_ERROR.

Referenced by GenNode_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sequenceIteration()

void sequenceIteration ( )
inlineprivate

Definition at line 266 of file gen-node-test.cpp.

References Record< VAL >::Mutator::attrib(), GenNode::begin(), Record< VAL >::child(), Record< VAL >::Mutator::genNode(), Record< VAL >::getType(), GenNode::hasChildren(), lib::diff::renderCompact(), Record< VAL >::Mutator::scope(), and Record< VAL >::TYPE_NIL.

Referenced by GenNode_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ equalityMatch()

void equalityMatch ( )
inlineprivate

Definition at line 373 of file gen-node-test.cpp.

References GenNode::data, GenNode::idi, DataCap::matchData(), and GenNode::matches().

Referenced by GenNode_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ convenienceRecAccess()

void convenienceRecAccess ( )
inlineprivate
Test:
simplified notation for access to nested record properties. This is a somewhat questionable shorthand, insofar it allows to "probe" the contents of a GenNode to some limited extent. Generally speaking, we'd prefer if the code using GenNode operates based on precise structural knowledge, instead of peeking into the data.

Definition at line 958 of file gen-node-test.cpp.

References Record< VAL >::Mutator::attrib(), GenNode::data, Record< VAL >::Mutator::genNode(), GenNode::hasAttribute(), GenNode::hasChildren(), GenNode::isNamed(), GenNode::isNested(), DataCap::recordType(), GenNode::retrieveAttribute(), Record< VAL >::Mutator::type(), and Record< VAL >::TYPE_NIL.

Referenced by GenNode_test::run().

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

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