ArmNN
 22.05.01
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 119 of file DotSerializer.cpp.

References DotBase::GetStream().

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

◆ ~DotEdge()

~DotEdge ( )

Definition at line 129 of file DotSerializer.cpp.

References DotBase::GetStream().

130 {
131  m_Attributes.reset(nullptr);
132  GetStream() << ";" << std::endl;
133 }
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: