![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "lib/diff/gen-node.hpp"
Definition at line 154 of file gen-node.hpp.
Classes | |
| struct | Locator |
Public Member Functions | |
| template<typename X > | |
| DataCap (X &&x) | |
| DataCap (DataCap const &)=default | |
| DataCap (DataCap &&)=default | |
| DataCap (DataCap &o) | |
| DataCap & | operator= (DataCap const &)=default |
| DataCap & | operator= (DataCap &&)=default |
| bool | matchData (DataCap const &) const |
| Implementation of content equality test, delgating to content. | |
| bool | matchNum (int64_t) const |
| bool | matchTxt (string const &) const |
| bool | matchTime (time::TimeValue) const |
| bool | matchBool (bool) const |
| bool | matchDbl (double) const |
| bool | matchLuid (hash::LuidH) const |
| bool | matchRec (RecRef const &) const |
| bool | matchRec (Rec const &) const |
| Locator | expand () const |
| operator string () const | |
| template<typename X > | |
| X & | get () |
| template<typename X > | |
| X const & | get () const |
| Rec::scopeIter | childIter () const |
visit children of a nested Record<GenNode> | |
| bool | isNested () const |
| determine if payload constitutes a nested scope ("object") | |
| string | recordType () const |
peek into the type field of a nested Record<GenNode> | |
| template<typename X > | |
| std::optional< X > | retrieveAttribute (string key) const |
| peek into the attributes of a nested Record | |
| bool | hasAttribute (string key) const |
| template<typename X > | |
| X const & | get () const |
| template<> | |
| Rec & | get () |
especially when accessing for a Record, a payload of type RecordRef<Record<GenNode>> (aka RecRef) will be automatically dereferenced. | |
| template<> | |
| Rec const & | get () const |
Public Member Functions inherited from Variant< DataValues > | |
| ~Variant () | |
| Variant () | |
| Variant (X &&x) | |
| Variant (Variant &ref) | |
| Variant (Variant const &ref) | |
| Variant (Variant &&rref) | |
| Variant & | operator= (X x) |
| Variant & | operator= (Variant &ovar) |
| Variant & | operator= (Variant const &ovar) |
| Variant & | operator= (Variant &&rvar) |
| operator string () const | |
| diagnostic helper | |
| X & | get () |
| X const & | get () const |
| void | accept (Visitor &visitor) |
| bool | accept (Predicate &visitor) const |
| string | accept (Renderer &visitor) const |
Private Member Functions | |
| Rec * | maybeAccessNestedRec () |
Additional Inherited Members | |
Public Types inherited from Variant< DataValues > | |
| enum | |
| using | VisitorFunc = variant::VFunc< RET >::template VisitorInterface< DataValues > |
| using | VisitorConstFunc = variant::VFunc< RET >::template VisitorInterface< meta::ConstAll< typename TYPES::List > > |
| using | FirstMatching = variant::FirstMatchingType< DataValues, _P_ > |
| Metafunction to pick the first of the variant's types, which satisfies the given trait or predicate template. | |
Protected Member Functions inherited from Variant< DataValues > | |
| Buffer & | buffer () |
| Buffer const & | buffer () const |
| Buff< X > & | buff () |
| X * | maybeGet () |
|
inline |
Definition at line 159 of file gen-node.hpp.
Definition at line 166 of file gen-node.hpp.
| bool matchData | ( | DataCap const & | o | ) | const |
Implementation of content equality test, delgating to content.
| error::Logic | when the given other DataCap does not hold a value of the same type than this DataCap. |
special treatment to allow matching a RecRef with an Record or RecRef on the other side
Definition at line 78 of file gen-node.cpp.
References Variant< DataValues >::accept(), DERIVE_EQUALITY, and DataCap::matchRec().
Referenced by GenNode_test::equalityMatch().
Here is the call graph for this function:
Here is the caller graph for this function:| bool matchNum | ( | int64_t | num | ) | const |
Definition at line 122 of file gen-node.cpp.
References Variant< DataValues >::accept(), and MATCH_NUMBER.
Referenced by GenNode::matches(), GenNode::matches(), GenNode::matches(), and GenNode::matches().
Here is the call graph for this function:
Here is the caller graph for this function:| bool matchTxt | ( | string const & | text | ) | const |
Definition at line 178 of file gen-node.cpp.
References Variant< DataValues >::accept(), and MATCH_STRING.
Referenced by GenNode::matches(), and GenNode::matches().
Here is the call graph for this function:
Here is the caller graph for this function:| bool matchTime | ( | time::TimeValue | time | ) | const |
Definition at line 209 of file gen-node.cpp.
References Variant< DataValues >::accept(), and MATCH_TIME.
Referenced by GenNode::matches().
Here is the call graph for this function:
Here is the caller graph for this function:| bool matchBool | ( | bool | b | ) | const |
Definition at line 237 of file gen-node.cpp.
Referenced by GenNode::matches().
Here is the caller graph for this function:| bool matchDbl | ( | double | d | ) | const |
Definition at line 150 of file gen-node.cpp.
References Variant< DataValues >::accept(), and MATCH_DOUBLE.
Referenced by GenNode::matches().
Here is the call graph for this function:
Here is the caller graph for this function:| bool matchLuid | ( | hash::LuidH | hash | ) | const |
Definition at line 245 of file gen-node.cpp.
References hash.
Referenced by GenNode::matches().
Here is the caller graph for this function:| bool matchRec | ( | RecRef const & | ref | ) | const |
Definition at line 253 of file gen-node.cpp.
References RecordRef< VAL >::empty(), RecordRef< VAL >::get(), and DataCap::matchRec().
Referenced by DataCap::matchData(), GenNode::matches(), GenNode::matches(), and DataCap::matchRec().
Here is the call graph for this function:
Here is the caller graph for this function:| bool matchRec | ( | Rec const & | rec | ) | const |
Definition at line 266 of file gen-node.cpp.
References RecordRef< VAL >::get().
Here is the call graph for this function:
|
inline |
Core operation to expand nested scopes recursively
Definition at line 653 of file gen-node.hpp.
| operator string | ( | ) | const |
Definition at line 280 of file gen-node.cpp.
|
inline |
Definition at line 694 of file gen-node.hpp.
Referenced by SimulatedCommandHandler::SimulatedCommandHandler(), TestNexus::act(), CoreService::act(), ChangeOperation< PAR, CLO >::assignElm(), ObjectTypeHandler< PAR >::assignElm(), _DefaultBinding< ELM, enable_if< can_wrap_in_GenNode< ELM > > >::attachTo(), DiffTreeMutationListener_test::buildMutator(), lib::diff::test::anonymous_namespace{diff-tree-application-simple-test.cpp}::contents(), Tangible::doMark(), NotificationHub::doMark(), DataSource< diff::GenNode >::findNode(), DiffIgnoreChanges_test::fish_for_content(), ChangeOperation< PAR, CLO >::injectNew(), ObjectTypeHandler< PAR >::injectNew(), WrappedStandardExeBuilder::invokeOriginalBuilder(), Tangible::mark(), TreeMutatorBinding_test::mutateGenNode(), GenNode_test::objectShortcut(), stage::model::test::anonymous_namespace{abstract-tangible-test.cpp}::processCommandInvocation(), DiffComplexApplication_test::run(), GenNode_test::simpleUsage(), GenNode_test::symbolReference(), and stage::interact::anonymous_namespace{interaction-director.cpp}::verifyDiffStructure_and_extract_RootTrack().
Here is the caller graph for this function:| X const & get | ( | ) | const |
Referenced by WrappedStandardExeBuilder::invokeOriginalBuilder().
Here is the caller graph for this function:
|
inline |
visit children of a nested Record<GenNode>
Definition at line 195 of file gen-node.hpp.
References Record< VAL >::scope().
Referenced by GenNode::getChildren(), and GenNode::hasChildren().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
determine if payload constitutes a nested scope ("object")
Definition at line 769 of file gen-node.hpp.
Referenced by _DefaultBinding< GenNode >::attachTo(), InteractionDirector::buildMutator(), TimelineController::buildMutator(), Opaque::buildMutator(), MockElm::buildMutator(), GenNode::isNested(), and stage::interact::anonymous_namespace{interaction-director.cpp}::verifyDiffStructure_and_extract_RootTrack().
Here is the caller graph for this function:
|
inline |
peek into the type field of a nested Record<GenNode>
Definition at line 761 of file gen-node.hpp.
References Record< VAL >::getType().
Referenced by TrackPresenter::buildMutator(), ClipPresenter::buildMutator(), and GenNode_test::convenienceRecAccess().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
peek into the attributes of a nested Record
Definition at line 777 of file gen-node.hpp.
References Record< VAL >::get(), and Record< VAL >::hasAttribute().
Referenced by GenNode::retrieveAttribute().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 793 of file gen-node.hpp.
References Record< VAL >::hasAttribute().
Referenced by GenNode::hasAttribute().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
helper to possibly peek into a nested record
Definition at line 741 of file gen-node.hpp.
References RecordRef< VAL >::empty(), and RecordRef< VAL >::get().
Here is the call graph for this function:
|
inline |
Definition at line 701 of file gen-node.hpp.
Referenced by WrappedStandardExeBuilder::invokeOriginalBuilder().
Here is the caller graph for this function:
|
inline |
especially when accessing for a Record, a payload of type RecordRef<Record<GenNode>> (aka RecRef) will be automatically dereferenced.
Effectively this allows a GenNode with a RecRef payload to "stand in" for a node holding a full Record inline. And it allows the construction of a special Ref-GenNode , which even shares the identity (the ID) of the referenced record-GenNode.
Definition at line 721 of file gen-node.hpp.
Referenced by WrappedStandardExeBuilder::invokeOriginalBuilder().
Here is the caller graph for this function:
|
inline |
Definition at line 731 of file gen-node.hpp.
Referenced by WrappedStandardExeBuilder::invokeOriginalBuilder().
Here is the caller graph for this function:
Inheritance diagram for DataCap:
Collaboration diagram for DataCap: