Tenncor
Public Member Functions | Public Attributes | List of all members
teq::PathFinder Struct Referencefinal

#include <traveler.hpp>

Inheritance diagram for teq::PathFinder:
Inheritance graph
[legend]
Collaboration diagram for teq::PathFinder:
Collaboration graph
[legend]

Public Member Functions

 PathFinder (const iTensor *target)
 
void visit (iLeaf *leaf) override
 Implementation of iTraveler. More...
 
void visit (iFunctor *func) override
 Implementation of iTraveler. More...
 
- Public Member Functions inherited from teq::iTraveler
virtual ~iTraveler (void)=default
 

Public Attributes

const iTensortarget_
 Target of tensor all paths are travelling to. More...
 
ParentMapT parents_
 Map of parent to child indices that lead to target tensor. More...
 

Detailed Description

Traveler that paints paths to a target tensor All nodes in the path are added as keys to the parents_ map with the values being a boolean vector denoting nodes leading to target For a boolean value x at index i in mapped vector, x is true if the ith child leads to target

Constructor & Destructor Documentation

◆ PathFinder()

teq::PathFinder::PathFinder ( const iTensor target)
inline

Member Function Documentation

◆ visit() [1/2]

void teq::PathFinder::visit ( iLeaf leaf)
inlineoverridevirtual

Implementation of iTraveler.

Implements teq::iTraveler.

◆ visit() [2/2]

void teq::PathFinder::visit ( iFunctor func)
inlineoverridevirtual

Implementation of iTraveler.

Implements teq::iTraveler.

Member Data Documentation

◆ parents_

ParentMapT teq::PathFinder::parents_

Map of parent to child indices that lead to target tensor.

◆ target_

const iTensor* teq::PathFinder::target_

Target of tensor all paths are travelling to.


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