Tenncor
Classes | Public Member Functions | Public Attributes | Private Attributes | List of all members
CSVEquation Struct Referencefinal

Use CSVEquation to render teq::TensptrT graph to output csv edges. More...

#include <teq_csv.hpp>

Inheritance diagram for CSVEquation:
Inheritance graph
[legend]
Collaboration diagram for CSVEquation:
Collaboration graph
[legend]

Classes

struct  Edge
 
struct  Node
 

Public Member Functions

 CSVEquation (GetTypeF get_ftype=[](teq::iFunctor *func) { return FUNCTOR;})
 
void visit (teq::iLeaf *leaf) override
 Implementation of iTraveler. More...
 
void visit (teq::iFunctor *func) override
 Implementation of iTraveler. More...
 
void to_stream (std::ostream &out)
 Stream visited graphs to out. More...
 
- Public Member Functions inherited from teq::iTraveler
virtual ~iTraveler (void)=default
 

Public Attributes

bool showshape_ = false
 Print every tensor's shape if true, otherwise don't. More...
 
LabelsMapT labels_
 For every label associated with a tensor, show LABEL=value in the tree. More...
 

Private Attributes

std::vector< Edgeedges_
 
std::unordered_map< teq::iTensor *, Nodenodes_
 
std::unordered_map< teq::iCoordMap *, std::string > coorders_
 
GetTypeF get_ftype_
 

Detailed Description

Use CSVEquation to render teq::TensptrT graph to output csv edges.

Constructor & Destructor Documentation

◆ CSVEquation()

CSVEquation::CSVEquation ( GetTypeF  get_ftype = [](teq::iFunctor* func) { return FUNCTOR; })
inline

Member Function Documentation

◆ to_stream()

void CSVEquation::to_stream ( std::ostream &  out)
inline

Stream visited graphs to out.

◆ visit() [1/2]

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

Implementation of iTraveler.

Implements teq::iTraveler.

◆ visit() [2/2]

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

Implementation of iTraveler.

Implements teq::iTraveler.

Member Data Documentation

◆ coorders_

std::unordered_map<teq::iCoordMap*,std::string> CSVEquation::coorders_
private

◆ edges_

std::vector<Edge> CSVEquation::edges_
private

◆ get_ftype_

GetTypeF CSVEquation::get_ftype_
private

◆ labels_

LabelsMapT CSVEquation::labels_

For every label associated with a tensor, show LABEL=value in the tree.

◆ nodes_

std::unordered_map<teq::iTensor*,Node> CSVEquation::nodes_
private

◆ showshape_

bool CSVEquation::showshape_ = false

Print every tensor's shape if true, otherwise don't.


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