ArmNN
 20.05
DotEdge Class Reference

#include <DotSerializer.hpp>

Inheritance diagram for DotEdge:
DotBase

Public Member Functions

 DotEdge (std::ostream &stream, LayerGuid fromNodeId, LayerGuid toNodeId)
 
 ~DotEdge ()
 
DotAttributeSetGetAttributeSet ()
 
- Public Member Functions inherited from DotBase
 DotBase (std::ostream &stream)
 
std::ostream & GetStream ()
 

Detailed Description

Definition at line 77 of file DotSerializer.hpp.

Constructor & Destructor Documentation

◆ DotEdge()

DotEdge ( std::ostream &  stream,
LayerGuid  fromNodeId,
LayerGuid  toNodeId 
)
explicit

Definition at line 118 of file DotSerializer.cpp.

References DotBase::GetStream().

119  : DotBase(stream)
120 {
121  std::stringstream ss;
122  ss << Indent(4) << fromNodeId << " -> " << toNodeId << " ";
123  GetStream() << ss.str();
124 
125  m_Attributes = std::make_unique<DotAttributeSet>(stream);
126 }
DotBase(std::ostream &stream)
std::ostream & GetStream()

◆ ~DotEdge()

~DotEdge ( )

Definition at line 128 of file DotSerializer.cpp.

References DotBase::GetStream().

129 {
130  m_Attributes.reset(nullptr);
131  GetStream() << ";" << std::endl;
132 }
std::ostream & GetStream()

Member Function Documentation

◆ GetAttributeSet()

DotAttributeSet& GetAttributeSet ( )
inline

Definition at line 83 of file DotSerializer.hpp.

Referenced by Graph::SerializeToDot().

83 { return *m_Attributes.get(); }

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