Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GenNodeBasic_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 91 of file gen-node-basic-test.cpp.

Private Member Functions

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

Member Function Documentation

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 95 of file gen-node-basic-test.cpp.

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

+ Here is the call graph for this function:

void simpleUsage ( )
inlineprivate

Definition at line 106 of file gen-node-basic-test.cpp.

References util::almostEqual(), util::contains(), GenNode::data, DataCap::get(), Record< VAL >::get(), BareEntryID::getSym(), Record< VAL >::getType(), GenNode::idi, GenNode::isNamed(), and VERIFY_ERROR.

Referenced by GenNodeBasic_test::run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void objectShortcut ( )
inlineprivate

Definition at line 153 of file gen-node-basic-test.cpp.

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

Referenced by GenNodeBasic_test::run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void symbolReference ( )
inlineprivate

Definition at line 219 of file gen-node-basic-test.cpp.

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

Referenced by GenNodeBasic_test::run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void sequenceIteration ( )
inlineprivate

Definition at line 263 of file gen-node-basic-test.cpp.

References util::almostEqual(), Record< VAL >::Mutator::attrib(), Record< VAL >::child(), Record< VAL >::Mutator::genNode(), Record< VAL >::getType(), util::isnil(), Record< VAL >::Mutator::scope(), and Record< VAL >::TYPE_NIL.

Referenced by GenNodeBasic_test::run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void equalityMatch ( )
inlineprivate

Definition at line 365 of file gen-node-basic-test.cpp.

References GenNode::data, GenNode::idi, lumiera::advice::matches(), GenNode::matches(), and lib::test::randTime().

Referenced by GenNodeBasic_test::run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

+ Inheritance diagram for GenNodeBasic_test:
+ Collaboration diagram for GenNodeBasic_test:

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