ArmNN
 24.02
DotEdge Class Reference

#include <DotSerializer.hpp>

Inheritance diagram for DotEdge:
[legend]
Collaboration diagram for DotEdge:
[legend]

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.

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 }

References DotBase::GetStream().

◆ ~DotEdge()

~DotEdge ( )

Definition at line 129 of file DotSerializer.cpp.

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

References DotBase::GetStream().

Member Function Documentation

◆ GetAttributeSet()

DotAttributeSet& GetAttributeSet ( )
inline

Definition at line 83 of file DotSerializer.hpp.

83 { return *m_Attributes.get(); }

Referenced by Graph::SerializeToDot().


The documentation for this class was generated from the following files:
armnn::DotBase::GetStream
std::ostream & GetStream()
Definition: DotSerializer.hpp:23
armnn::DotBase::DotBase
DotBase(std::ostream &stream)
Definition: DotSerializer.hpp:20